aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-08-10 16:52:58 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-10 09:50:22 -0700
commit5c2bb9b6e27d9207c2e12b9cdb6bfc171afa663e (patch)
tree5ddd2662f10cbaad9329675ec4d6d159f8d034fd /tools/perf/scripts/python/netdev-times.py
parentrtnetlink: use rcu_dereference_raw to silence rcu splat (diff)
downloadlinux-5c2bb9b6e27d9207c2e12b9cdb6bfc171afa663e.tar.gz
linux-5c2bb9b6e27d9207c2e12b9cdb6bfc171afa663e.zip
rtnetlink: do not use RTM_GETLINK directly
Userspace sends RTM_GETLINK type, but the kernel substracts RTM_BASE from this, i.e. 'type' doesn't contain RTM_GETLINK anymore but instead RTM_GETLINK - RTM_BASE. This caused the calcit callback to not be invoked when it should have been (and vice versa). While at it, also fix a off-by one when checking family index. vs handler array size. Fixes: e1fa6d216dd ("rtnetlink: call rtnl_calcit directly") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions