lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ