aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorFlorian Larysch <[email protected]>2017-04-07 14:42:20 +0200
committerDavid S. Miller <[email protected]>2017-04-07 07:56:14 -0700
commitbbadb9a222b4f0c3fec01483b57cbb403df0076a (patch)
tree6fe6fd6ede5779737213a463db74d01db38623dc /tools/perf/scripts/python/Perf-Trace-Util/lib
parent6f551bd5fba381bfd5baf72027adf33bd79570f3 (diff)
net: ipv4: fix multipath RTM_GETROUTE behavior when iif is given
inet_rtm_getroute synthesizes a skeletal ICMP skb, which is passed to ip_route_input when iif is given. If a multipath route is present for the designated destination, fib_multipath_hash ends up being called with that skb. However, as that skb contains no information beyond the protocol type, the calculated hash does not match the one we would see for a real packet. There is currently no way to fix this for layer 4 hashing, as RTM_GETROUTE doesn't have the necessary information to create layer 4 headers. To fix this for layer 3 hashing, set appropriate saddr/daddrs in the skb and also change the protocol to UDP to avoid special treatment for ICMP. Signed-off-by: Florian Larysch <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions