mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
selftests/bpf: Implement set_hw_ring_size function to configure interface ring size
Introduce a new function called set_hw_ring_size that allows for the dynamic configuration of the ring size within the interface. 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-5-tushar.vyavahare@intel.com
This commit is contained in:
committed by
Daniel Borkmann
parent
90a695c3d3
commit
bee3a7b076
@@ -65,6 +65,7 @@ int make_sockaddr(int family, const char *addr_str, __u16 port,
|
||||
char *ping_command(int family);
|
||||
int get_socket_local_port(int sock_fd);
|
||||
int get_hw_ring_size(char *ifname, struct ethtool_ringparam *ring_param);
|
||||
int set_hw_ring_size(char *ifname, struct ethtool_ringparam *ring_param);
|
||||
|
||||
struct nstoken;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user