/linux-6.12.1/tools/testing/selftests/drivers/net/netdevsim/ |
D | ethtool-common.sh | 5 NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID 6 NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID/ports/0 13 echo $NSIM_ID > /sys/bus/netdevsim/del_device 49 if ! $(lsmod | grep -q netdevsim); then 50 modprobe netdevsim 53 echo $NSIM_ID $@ > /sys/bus/netdevsim/new_device 56 ls /sys/bus/netdevsim/devices/netdevsim${NSIM_ID}/net/
|
D | peer.sh | 7 NSIM_DEV_1_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_DEV_1_ID 9 NSIM_DEV_2_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_DEV_2_ID 11 NSIM_DEV_SYS_NEW=/sys/bus/netdevsim/new_device 12 NSIM_DEV_SYS_DEL=/sys/bus/netdevsim/del_device 13 NSIM_DEV_SYS_LINK=/sys/bus/netdevsim/link_device 14 NSIM_DEV_SYS_UNLINK=/sys/bus/netdevsim/unlink_device 60 modprobe netdevsim 141 modprobe -r netdevsim
|
D | devlink_in_netns.sh | 12 DEV_NAME=netdevsim$BUS_ADDR 13 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV_NAME/net/ 14 DL_HANDLE=netdevsim/$DEV_NAME 51 modprobe netdevsim 54 echo "$BUS_ADDR $PORT_COUNT" > /sys/bus/netdevsim/new_device 61 echo "$BUS_ADDR" > /sys/bus/netdevsim/del_device 63 modprobe -r netdevsim
|
D | psample.sh | 14 NETDEVSIM_PATH=/sys/bus/netdevsim/ 16 DEV=netdevsim${DEV_ADDR} 17 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV/net/ 18 PSAMPLE_DIR=/sys/kernel/debug/netdevsim/$DEV/psample/ 25 DEVLINK_DEV=netdevsim/${DEV} 155 modprobe netdevsim &> /dev/null 174 modprobe -r netdevsim &> /dev/null
|
D | udp_tunnel_nic.sh | 6 NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID 7 NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID 37 echo $NSIM_ID > /sys/bus/netdevsim/del_device 258 modprobe netdevsim 266 echo $NSIM_ID > /sys/bus/netdevsim/new_device 336 modprobe -r netdevsim 341 if modinfo netdevsim | grep udp_tunnel >/dev/null; then 347 modprobe netdevsim 351 echo $NSIM_ID > /sys/bus/netdevsim/new_device 374 modprobe -r netdevsim [all …]
|
D | fib_notifications.sh | 17 NETDEVSIM_PATH=/sys/bus/netdevsim/ 19 DEV=netdevsim${DEV_ADDR} 20 DEVLINK_DEV=netdevsim/${DEV} 21 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV/net/ 22 DEBUGFS_DIR=/sys/kernel/debug/netdevsim/$DEV/ 390 modprobe netdevsim &> /dev/null 421 modprobe -r netdevsim &> /dev/null
|
D | hw_stats_l3.sh | 14 NETDEVSIM_PATH=/sys/bus/netdevsim/ 33 echo netdevsim$(DEV_ADDR $1) 38 echo netdevsim/$(DEV $1) 43 echo /sys/bus/netdevsim/devices/$(DEV $1)/net/ 48 echo /sys/kernel/debug/netdevsim/$(DEV $1)/ 109 modprobe netdevsim &> /dev/null 141 modprobe -r netdevsim &> /dev/null
|
D | fib.sh | 35 NETDEVSIM_PATH=/sys/bus/netdevsim/ 37 DEV=netdevsim${DEV_ADDR} 38 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV/net/ 39 DEBUGFS_DIR=/sys/kernel/debug/netdevsim/$DEV/ 46 DEVLINK_DEV=netdevsim/${DEV} 366 modprobe netdevsim &> /dev/null 389 modprobe -r netdevsim &> /dev/null
|
D | devlink.sh | 15 DEV_NAME=netdevsim$BUS_ADDR 16 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV_NAME/net/ 17 DEBUGFS_DIR=/sys/kernel/debug/netdevsim/$DEV_NAME/ 18 DL_HANDLE=netdevsim/$DEV_NAME 629 echo $VF_COUNT > /sys/bus/netdevsim/devices/$DEV_NAME/sriov_numvfs 702 modprobe netdevsim 703 echo "$BUS_ADDR $PORT_COUNT" > /sys/bus/netdevsim/new_device 710 echo "$BUS_ADDR" > /sys/bus/netdevsim/del_device 711 modprobe -r netdevsim
|
D | devlink_trap.sh | 24 NETDEVSIM_PATH=/sys/bus/netdevsim/ 26 DEV=netdevsim${DEV_ADDR} 27 DEBUGFS_DIR=/sys/kernel/debug/netdevsim/$DEV/ 35 DEVLINK_DEV=netdevsim/${DEV} 39 modprobe netdevsim &> /dev/null
|
D | nexthop.sh | 44 NETDEVSIM_PATH=/sys/bus/netdevsim/ 46 DEV=netdevsim${DEV_ADDR} 47 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV/net/ 48 DEBUGFS_NET_DIR=/sys/kernel/debug/netdevsim/$DEV/ 54 DEVLINK_DEV=netdevsim/${DEV} 1025 modprobe netdevsim &> /dev/null 1049 modprobe -r netdevsim &> /dev/null
|
/linux-6.12.1/Documentation/networking/devlink/ |
D | netdevsim.rst | 4 netdevsim devlink support 8 ``netdevsim`` device driver. 20 The ``netdevsim`` driver also implements the following driver-specific 36 The ``netdevsim`` driver supports reloading via ``DEVLINK_CMD_RELOAD`` 41 The ``netdevsim`` driver exposes a ``dummy`` region as an example of how the 48 The ``netdevsim`` driver exposes resources to control the number of FIB 53 $ devlink resource set netdevsim/netdevsim0 path /IPv4/fib size 96 54 $ devlink resource set netdevsim/netdevsim0 path /IPv4/fib-rules size 16 55 $ devlink resource set netdevsim/netdevsim0 path /IPv6/fib size 64 56 $ devlink resource set netdevsim/netdevsim0 path /IPv6/fib-rules size 16 [all …]
|
/linux-6.12.1/drivers/net/netdevsim/ |
D | netdevsim.h | 99 struct netdevsim { struct 139 struct netdevsim __rcu *peer; argument 142 struct netdevsim * 144 void nsim_destroy(struct netdevsim *ns); 147 void nsim_ethtool_init(struct netdevsim *ns); 157 int nsim_bpf_init(struct netdevsim *ns); 158 void nsim_bpf_uninit(struct netdevsim *ns); 160 int nsim_bpf_disable_tc(struct netdevsim *ns); 173 static inline int nsim_bpf_init(struct netdevsim *ns) in nsim_bpf_init() 178 static inline void nsim_bpf_uninit(struct netdevsim *ns) in nsim_bpf_uninit() [all …]
|
D | Makefile | 3 obj-$(CONFIG_NETDEVSIM) += netdevsim.o 5 netdevsim-objs := \ 9 netdevsim-objs += \ 14 netdevsim-objs += ipsec.o 18 netdevsim-objs += psample.o 22 netdevsim-objs += macsec.o
|
D | netdev.c | 52 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() 55 struct netdevsim *peer_ns; in nsim_start_xmit() 102 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() 115 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64() 134 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() 148 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan() 163 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate() 182 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk() 194 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en() 206 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust() [all …]
|
D | ethtool.c | 14 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pause_stats() 25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() 35 struct netdevsim *ns = netdev_priv(dev); in nsim_set_pauseparam() 50 struct netdevsim *ns = netdev_priv(dev); in nsim_get_coalesce() 61 struct netdevsim *ns = netdev_priv(dev); in nsim_set_coalesce() 72 struct netdevsim *ns = netdev_priv(dev); in nsim_get_ringparam() 82 struct netdevsim *ns = netdev_priv(dev); in nsim_set_ringparam() 94 struct netdevsim *ns = netdev_priv(dev); in nsim_get_channels() 103 struct netdevsim *ns = netdev_priv(dev); in nsim_set_channels() 118 struct netdevsim *ns = netdev_priv(dev); in nsim_get_fecparam() [all …]
|
D | macsec.c | 6 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy() 32 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_secy() 61 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_secy() 79 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_secy() 101 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_rxsc() 136 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_rxsc() 163 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_rxsc() 194 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_rxsa() 221 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_rxsa() 248 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_rxsa() [all …]
|
D | bpf.c | 41 struct netdevsim *ns; 87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() 104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() 123 struct netdevsim *ns = cb_priv; in nsim_bpf_setup_tc_block_cb() 173 int nsim_bpf_disable_tc(struct netdevsim *ns) in nsim_bpf_disable_tc() 180 static int nsim_xdp_offload_prog(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_xdp_offload_prog() 193 nsim_xdp_set_prog(struct netdevsim *ns, struct netdev_bpf *bpf, in nsim_xdp_set_prog() 293 static int nsim_setup_prog_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_checks() 307 nsim_setup_prog_hw_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_hw_checks() 484 nsim_bpf_map_alloc(struct netdevsim *ns, struct bpf_offloaded_map *offmap) in nsim_bpf_map_alloc() [all …]
|
D | ipsec.c | 16 struct netdevsim *ns = filp->private_data; in nsim_dbg_netdev_ops_read() 133 struct netdevsim *ns; in nsim_ipsec_add_sa() 202 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_del_sa() 219 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_offload_ok() 233 bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb) in nsim_ipsec_tx() 280 void nsim_ipsec_init(struct netdevsim *ns) in nsim_ipsec_init() 296 void nsim_ipsec_teardown(struct netdevsim *ns) in nsim_ipsec_teardown()
|
D | udp_tunnels.c | 15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() 44 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_unset_port() 73 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_sync_table() 113 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_reset_write() 133 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_create()
|
/linux-6.12.1/tools/testing/selftests/drivers/net/ |
D | netcons_basic.sh | 46 local NSIM_DEV_SYS_NEW=/sys/bus/netdevsim/new_device 52 local NSIM1=/sys/bus/netdevsim/devices/netdevsim"$NSIM_DEV_1_ID" 53 local NSIM2=/sys/bus/netdevsim/devices/netdevsim"$NSIM_DEV_2_ID" 207 modprobe netdevsim 2> /dev/null || true
|
D | README.rst | 14 against software drivers such as netdevsim. No extra preparation is required 34 drivers/net/netdevsim, HW-only tests in drivers/net/hw. 103 On the target machine, running the tests will use netdevsim by default::
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | drop_monitor_tests.sh | 14 NETDEVSIM_PATH=/sys/bus/netdevsim/ 16 DEV=netdevsim${DEV_ADDR} 17 DEVLINK_DEV=netdevsim/${DEV} 37 modprobe netdevsim &> /dev/null
|
D | rtnetlink.sh | 564 sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ 565 sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/ 579 if [ ! -w /sys/bus/netdevsim/new_device ] ; then 580 run_cmd modprobe -q netdevsim 589 echo "0" > /sys/bus/netdevsim/new_device 619 echo 0 > /sys/bus/netdevsim/del_device 620 $probed && rmmod netdevsim 737 sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ 739 sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/ 747 if [ ! -w /sys/bus/netdevsim/new_device ] ; then [all …]
|
/linux-6.12.1/tools/testing/selftests/tc-testing/ |
D | tdc.sh | 15 try_modprobe netdevsim
|