[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140228092447.GC2823@minipsycho.orion>
Date: Fri, 28 Feb 2014 10:24:47 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Ivan Vecera <ivecera@...hat.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, rmody@...cade.com
Subject: Re: [PATCH net] bna: fix vlan tag stripping and implement its
toggling
>+int bnad_set_features(struct net_device *dev, netdev_features_t features)
>+{
>+ struct bnad *bnad = netdev_priv(dev);
>+ netdev_features_t changed = features ^ dev->features;
>+
>+ if ((changed & NETIF_F_HW_VLAN_CTAG_RX) && netif_running(dev)) {
^^^^^^^^^^^^^^^^^^
why?
>+ unsigned long flags;
>+
>+ spin_lock_irqsave(&bnad->bna_lock, flags);
>+
>+ if (features & NETIF_F_HW_VLAN_CTAG_RX)
>+ bna_rx_vlan_strip_enable(bnad->rx_info[0].rx);
>+ else
>+ bna_rx_vlan_strip_disable(bnad->rx_info[0].rx);
>+
>+ spin_unlock_irqrestore(&bnad->bna_lock, flags);
>+ }
>+
>+ return 0;
>+}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists