netdev: Add netdev->addr_list_lock protection.
authorDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 07:13:44 +0000 (00:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 07:13:44 +0000 (00:13 -0700)
commite308a5d806c852f56590ffdd3834d0df0cbed8d7
tree294ff654e90950f5162737c26f4799b0b710b748
parentf1f28aa3510ddb84c966bac65611bb866c77a092
netdev: Add netdev->addr_list_lock protection.

Add netif_addr_{lock,unlock}{,_bh}() helpers.

Use them to protect operations that operate on or read
the network device unicast and multicast address lists.

Also use them in cases where the code simply wants to
block calls into the driver's ->set_rx_mode() and
->set_multicast_list() methods.

Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
drivers/media/dvb/dvb-core/dvb_net.c
drivers/net/bonding/bond_main.c
drivers/net/forcedeth.c
drivers/net/hamradio/6pack.c
drivers/net/hamradio/mkiss.c
drivers/net/ibm_newemac/core.c
drivers/net/sfc/efx.c
drivers/net/wireless/libertas/main.c
include/linux/netdevice.h
net/core/dev.c
net/core/dev_mcast.c
net/mac80211/main.c
net/mac80211/mlme.c