net: add RCU variant to search for netdev_adjacent link
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:08 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:04 +0000 (16:02 -0400)
commit5249dec7380cb64928d2ae6201028b4da1dceb1e
tree2503cd128a3302d5871d6fa0ed804e508188a54f
parent2f268f129c2d1a05d297fe3ee34d393f862d2b22
net: add RCU variant to search for netdev_adjacent link

Currently we have only the RTNL flavour, however we can traverse it while
holding only RCU, so add the RCU search. Add an RCU variant that uses
list_head * as an argument, so that it can be universally used afterwards.

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>
CC: Cong Wang <amwang@redhat.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c