diff options
author | luyun <[email protected]> | 2022-05-25 11:18:19 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-05-25 21:58:35 -0700 |
commit | 215cd9897afbce9a964d4afbeec58c086d6cb170 (patch) | |
tree | 28494d12c08e5427967ae3eeae2944190f13548d /tools/perf/scripts/python/check-perf-trace.py | |
parent | d0bbe0328fe552ff3211b3cbbf6117a885a3d5b2 (diff) |
selftests/net: enable lo.accept_local in psock_snd test
The psock_snd test sends and receives packets over loopback, and
the test results depend on parameter settings:
Set rp_filter=0,
or set rp_filter=1 and accept_local=1
so that the test will pass. Otherwise, this test will fail with
Resource temporarily unavailable:
sudo ./psock_snd.sh
dgram
tx: 128
rx: 142
./psock_snd: recv: Resource temporarily unavailable
For most distro kernel releases(like Ubuntu or Centos), the parameter
rp_filter is enabled by default, so it's necessary to enable the
parameter lo.accept_local in psock_snd test. And this test runs
inside a netns, changing a sysctl is fine.
Signed-off-by: luyun <[email protected]>
Reviewed-by: Jackie Liu <[email protected]>
Tested-by: Hangbin Liu <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions