]> git.baikalelectronics.ru Git - kernel.git/commit
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared
authorNeil Horman <nhorman@tuxdriver.com>
Tue, 26 Jul 2011 06:05:38 +0000 (06:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2011 05:39:30 +0000 (22:39 -0700)
commit64bb6eec6a16f2fc59941e1426eaadef10c83f91
tree8aa7c4d20a9faeb42261b75cfa38d8fd27b574ff
parent89ee106e9e9209711e28faee4de6f63000b04478
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared

After the last patch, We are left in a state in which only drivers calling
ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real
hardware call ether_setup for their net_devices and don't hold any state in
their skbs.  There are a handful of drivers that violate this assumption of
course, and need to be fixed up.  This patch identifies those drivers, and marks
them as not being able to support the safe transmission of skbs by clearning the
IFF_TX_SKB_SHARING flag in priv_flags

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Karsten Keil <isdn@linux-pingi.de>
CC: "David S. Miller" <davem@davemloft.net>
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: Patrick McHardy <kaber@trash.net>
CC: Krzysztof Halasa <khc@pm.waw.pl>
CC: "John W. Linville" <linville@tuxdriver.com>
CC: Greg Kroah-Hartman <gregkh@suse.de>
CC: Marcel Holtmann <marcel@holtmann.org>
CC: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
drivers/isdn/i4l/isdn_net.c
drivers/net/bonding/bond_main.c
drivers/net/ifb.c
drivers/net/macvlan.c
drivers/net/tun.c
drivers/net/veth.c
drivers/net/wan/hdlc_fr.c
drivers/net/wireless/airo.c
drivers/net/wireless/hostap/hostap_main.c
drivers/staging/ath6kl/os/linux/ar6000_drv.c
net/8021q/vlan_dev.c
net/bluetooth/bnep/netdev.c
net/l2tp/l2tp_eth.c
net/mac80211/iface.c