aboutgitcodebugslistschat
path: root/test/perf/pasta_tcp
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-03 13:23:00 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-11-07 09:53:24 +0100
commit180dbc957aa5f49f03ab04b65f826e32763ab5cd (patch)
tree611376252fe32e9dd38ebd5a912ac273abd0c5c6 /test/perf/pasta_tcp
parent5a0485425bc9d43bc5228fe1b8b6286be83d3d1e (diff)
downloadpasst-180dbc957aa5f49f03ab04b65f826e32763ab5cd.tar
passt-180dbc957aa5f49f03ab04b65f826e32763ab5cd.tar.gz
passt-180dbc957aa5f49f03ab04b65f826e32763ab5cd.tar.bz2
passt-180dbc957aa5f49f03ab04b65f826e32763ab5cd.tar.lz
passt-180dbc957aa5f49f03ab04b65f826e32763ab5cd.tar.xz
passt-180dbc957aa5f49f03ab04b65f826e32763ab5cd.tar.zst
passt-180dbc957aa5f49f03ab04b65f826e32763ab5cd.zip
port_fwd: Don't NS_CALL get_bound_ports()
When we want to scan for bound ports in the namespace we use NS_CALL() to run get_bound_ports() in the namespace. However, the only thing it actually needed to be in the namespace for was to open the /proc/net file it was scanning. Since we now always pre-open those, we no longer need to switch to the namespace for the actual get_bound_ports() calls. That in turn means that tcp_port_detect() doesn't need to run in the ns either, and we can just replace it with inline calls to get_bound_ports(). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/perf/pasta_tcp')
0 files changed, 0 insertions, 0 deletions