linux/drivers/net/netdevsim
Ido Schimmel c6385c0b67 netdevsim: Allow reporting activity on nexthop buckets
A key component of the resilient hashing algorithm is the hash buckets'
activity. If a bucket is active, it will not be populated with a new
nexthop in order not to break existing flows. Therefore, in order to
easily and thoroughly test the algorithm, we need to be in full control
over the reported activity.

Add a debugfs interface that allows user space to have netdevsim report
a nexthop bucket within a resilient nexthop group as active. For
example:

 # echo 10 23 > /sys/kernel/debug/netdevsim/netdevsim10/fib/nexthop_bucket_activity

Will mark bucket 23 in nexthop group 10 as active.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-12 17:44:10 -08:00
..
Makefile
bpf.c netdevsim: Add debugfs toggle to reject BPF programs in verifier 2020-12-09 16:27:42 +01:00
bus.c
dev.c netdevsim: dev: Initialize FIB module after debugfs 2021-02-08 16:47:03 -08:00
ethtool.c netdevsim: support ethtool ring and coalesce settings 2020-11-20 12:51:54 -08:00
fib.c netdevsim: Allow reporting activity on nexthop buckets 2021-03-12 17:44:10 -08:00
health.c
ipsec.c
netdev.c netdevsim: init u64 stats for 32bit hardware 2021-03-04 14:36:26 -08:00
netdevsim.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
udp_tunnels.c