]> git.baikalelectronics.ru Git - kernel.git/commit
net: add netdev_upper_get_next_dev_rcu(dev, iter)
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 28 Aug 2013 21:25:07 +0000 (23:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 20:19:42 +0000 (16:19 -0400)
commit563f6b2aa593068c1ac349719e1fe56d0149dc9d
tree75d08bc2b59876668f50a293eae746755b2cc075
parent3bbd5fd996b300c4572cf9aa78da77e2c93bfd6d
net: add netdev_upper_get_next_dev_rcu(dev, iter)

This function returns the next dev in the dev->upper_dev_list after the
struct list_head **iter position, and updates *iter accordingly. Returns
NULL if there are no devices left.

Caller must hold RCU read lock.

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