aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorPeter Oskolkov <[email protected]>2018-12-12 13:15:34 -0800
committerDavid S. Miller <[email protected]>2018-12-14 15:55:20 -0800
commit23b0269e58aee1165133b9696e43992f969b5088 (patch)
tree0f35b0e22da71c251ee338e0d00b80b8c1c62e7d /tools/perf/scripts/python/syscall-counts-by-pid.py
parent4cdeeee9252af1ba50482f91d615f326365306bd (diff)
net: udp6: prefer listeners bound to an address
A relatively common use case is to have several IPs configured on a host, and have different listeners for each of them. We would like to add a "catch all" listener on addr_any, to match incoming connections not served by any of the listeners bound to a specific address. However, port-only lookups can match addr_any sockets when sockets listening on specific addresses are present if so_reuseport flag is set. This patch eliminates lookups into port-only hashtable, as lookups by (addr,port) tuple are easily available. In addition, compute_score() is tweaked to _not_ match addr_any sockets to specific addresses, as hash collisions could result in the unwanted behavior described above. Tested: the patch compiles; full test in the last patch in this patchset. Existing reuseport_* selftests also pass. Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Peter Oskolkov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions