]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Implement get_hw_ring_size function to retrieve current and max interf...
authorTushar Vyavahare <tushar.vyavahare@intel.com>
Tue, 2 Apr 2024 11:45:25 +0000 (11:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:16 +0000 (16:29 +0200)
commitc8c590f07ad7ffaa6ef11e90b81202212077497b
tree12ea3fd676f7a9fb10b2e6f62f7dc431a99324af
parent7c877bad03fbff899201c950eca442b8fe2bb660
selftests/bpf: Implement get_hw_ring_size function to retrieve current and max interface size

[ Upstream commit 90a695c3d31e1c9f0adb8c4c80028ed4ea7ed5ab ]

Introduce a new function called get_hw_size that retrieves both the
current and maximum size of the interface and stores this information
in the 'ethtool_ringparam' structure.

Remove ethtool_channels struct from xdp_hw_metadata.c due to redefinition
error. Remove unused linux/if.h include from flow_dissector BPF test to
address CI pipeline failure.

Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20240402114529.545475-4-tushar.vyavahare@intel.com
Stable-dep-of: 69f409469c9b ("selftests/bpf: Drop unneeded error.h includes")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/network_helpers.c
tools/testing/selftests/bpf/network_helpers.h
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
tools/testing/selftests/bpf/xdp_hw_metadata.c