Thread (16 messages) flat view 16 messages, 3 authors, 2017-09-23

Re: [PATCH net-next v2 2/6] rtnetlink: add helper to put master ifindex

From: David Ahern <hidden>
Date: 2017-09-23 17:01:27

On 9/22/17 12:10 AM, Florian Westphal wrote:
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 need the lock, which spots assume it and which ones could do
without.

Add helpers to factor out the ifindex dumping.

One helper can use rcu to remove rtnl dependency.

Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/core/rtnetlink.c | 32 +++++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)
Reviewed-by: David Ahern <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help