diff options
author | 2024-09-10 14:41:29 +0200 | |
---|---|---|
committer | 2024-09-11 15:48:35 +0200 | |
commit | d41905b3bb890a32c87b65228b241daad8837fb0 (patch) | |
tree | be2c9f80c072cbbb1ec7f979e0fda7bd45de41c5 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | xsk: Bump xsk_queue::queue_empty_descs in xp_can_alloc() (diff) | |
download | wireguard-linux-d41905b3bb890a32c87b65228b241daad8837fb0.tar.xz wireguard-linux-d41905b3bb890a32c87b65228b241daad8837fb0.zip |
selftests/xsk: Read current MAX_SKB_FRAGS from sysctl knob
Currently, xskxceiver assumes that MAX_SKB_FRAGS value is always 17
which is not true - since the introduction of BIG TCP this can now take
any value between 17 to 45 via CONFIG_MAX_SKB_FRAGS.
Adjust the TOO_MANY_FRAGS test case to read the currently configured
MAX_SKB_FRAGS value by reading it from /proc/sys/net/core/max_skb_frags.
If running system does not provide that sysctl file then let us try
running the test with a default value.
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20240910124129.289874-1-maciej.fijalkowski@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions