]> git.baikalelectronics.ru Git - kernel.git/commit
net: inetdevice: provide replacement iterators for in_ifaddr walk
authorFlorian Westphal <fw@strlen.de>
Fri, 31 May 2019 16:27:04 +0000 (18:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 01:06:26 +0000 (18:06 -0700)
commit682a692ffae0b02d99521e62aa9101aadd12f7e5
tree9b03e99d63d2ce8b04a8b489a52aac3d1c47e8f7
parent35feb037c477871beaa94ea553dfe69adbd6f1ea
net: inetdevice: provide replacement iterators for in_ifaddr walk

The ifa_list is protected either by rcu or rtnl lock, but the
current iterators do not account for this.

This adds two iterators as replacement, a later patch in
the series will update them with the needed rcu/rtnl_dereference calls.

Its not done in this patch yet to avoid sparse warnings -- the fields
lack the proper __rcu annotation.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inetdevice.h
net/ipv4/devinet.c