Home
last modified time | relevance | path

Searched hist:"79110 a0426d8179a51bf3cb698a84f6ec98ca60c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Drtnetlink.cdiff 79110a0426d8179a51bf3cb698a84f6ec98ca60c Tue Sep 26 06:58:40 CDT 2017 Florian Westphal <fw@strlen.de> rtnetlink: add helper to put master and link ifindexes

rtnl_fill_ifinfo currently requires caller to hold the rtnl mutex.
Unfortunately the function is quite large which makes it harder to see
which spots require the lock, which spots assume it and which ones could
do without.

Add helpers to factor out the ifindex dumping, one can use rcu to avoid
rtnl dependency.

Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>