linux_dsm_epyc7002/drivers/net/netdevsim
Jiri Pirko ab1d0cc004 netdevsim: change debugfs tree topology
With the model where dev is represented by devlink and ports are
represented by devlink ports, make debugfs file names independent
on netdev names. Change the topology to the one illustrated
by the following example:

$ ls /sys/kernel/debug/netdevsim/
netdevsim1
$ ls /sys/kernel/debug/netdevsim/netdevsim1/
bpf_bind_accept  bpf_bind_verifier_delay  bpf_bound_progs  ports
$ ls /sys/kernel/debug/netdevsim/netdevsim1/ports/
0  1
$ ls /sys/kernel/debug/netdevsim/netdevsim1/ports/0/
bpf_map_accept  bpf_offloaded_id  bpf_tc_accept  bpf_tc_non_bound_accept  bpf_xdpdrv_accept  bpf_xdpoffload_accept  dev  ipsec
$ ls /sys/kernel/debug/netdevsim/netdevsim1/ports/0/dev -l
lrwxrwxrwx 1 root root 0 Apr 13 15:58 /sys/kernel/debug/netdevsim/netdevsim1/ports/0/dev -> ../../../netdevsim1

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-26 01:52:02 -04:00
..
bpf.c netdevsim: merge sdev into dev 2019-04-26 01:52:02 -04:00
bus.c netdevsim: add bus attributes to add new and delete devices 2019-04-26 01:52:02 -04:00
dev.c netdevsim: change debugfs tree topology 2019-04-26 01:52:02 -04:00
fib.c netdevsim: create devlink instance per netdevsim instance 2019-04-26 01:52:02 -04:00
ipsec.c drivers: net: netdevsim: use skb_sec_path helper 2018-12-19 11:21:37 -08:00
Makefile netdevsim: merge sdev into dev 2019-04-26 01:52:02 -04:00
netdev.c netdevsim: change debugfs tree topology 2019-04-26 01:52:02 -04:00
netdevsim.h netdevsim: change debugfs tree topology 2019-04-26 01:52:02 -04:00
sdev.c netdevsim: move shared dev creation and destruction into separate file 2019-04-12 16:49:54 -07:00