aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2017-09-26 13:58:40 +0200
committerDavid S. Miller <[email protected]>2017-09-28 10:20:49 -0700
commit79110a0426d8179a51bf3cb698a84f6ec98ca60c (patch)
tree4b4e13116913a270002cd7d310049b3ef37c52be /tools
parent61f26d92510ea1e30f9b69097b34b6a522daa1d2 (diff)
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 <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions