Commit c8c590f0 authored by Tushar Vyavahare's avatar Tushar Vyavahare Committed by Greg Kroah-Hartman
Browse files

selftests/bpf: Implement get_hw_ring_size function to retrieve current and max interface size



[ Upstream commit 90a695c3 ]

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: default avatarTushar Vyavahare <tushar.vyavahare@intel.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarMagnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20240402114529.545475-4-tushar.vyavahare@intel.com


Stable-dep-of: 69f40946 ("selftests/bpf: Drop unneeded error.h includes")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7c877bad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment