summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-15 07:08:33 (GMT)
committerDavid S. Miller <davem@davemloft.net>2008-07-15 07:08:33 (GMT)
commitf1f28aa3510ddb84c966bac65611bb866c77a092 (patch)
treedc8509a61667c52ee43df64bf69566569538b691 /net
parentf66ac03d497c162c70cd0ccc802ce1777073cdf3 (diff)
downloadlinux-fsl-qoriq-f1f28aa3510ddb84c966bac65611bb866c77a092.tar.xz
netdev: Add addr_list_lock to struct net_device.
This will be used to protect the per-device unicast and multicast address lists, as well as the callbacks into the drivers which configure such state such as ->set_rx_mode() and ->set_multicast_list(). Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index feaab489..d933d1b 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3836,6 +3836,7 @@ int register_netdevice(struct net_device *dev)
BUG_ON(!dev_net(dev));
net = dev_net(dev);
+ spin_lock_init(&dev->addr_list_lock);
netdev_init_queue_locks(dev);
dev->iflink = -1;