]> Pileus Git - ~andy/linux/commit
net: add for_each iterators through neighbour lower link's private
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:12 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:04 +0000 (16:02 -0400)
commit31088a113c2a948856ed2047d8c21c217b13e85d
tree15847ff3e7b82f578f4a06cb801a5dccc0fd961e
parent46bb4807b5d95a049b008efd639ff8942970d815
net: add for_each iterators through neighbour lower link's private

Add a possibility to iterate through netdev_adjacent's private, currently
only for lower neighbours.

Add both RCU and RTNL/other locking variants of iterators, and make the
non-rcu variant to be safe from removal.

CC: "David S. Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Jiri Pirko <jiri@resnulli.us>
CC: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c