Home
last modified time | relevance | path

Searched refs:netdevsim (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.6.21/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-common.sh5 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
55 ls /sys/bus/netdevsim/devices/netdevsim${NSIM_ID}/net/
Ddevlink_in_netns.sh12 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
Dpsample.sh14 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
Dudp_tunnel_nic.sh6 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
257 modprobe netdevsim
265 echo $NSIM_ID > /sys/bus/netdevsim/new_device
335 modprobe -r netdevsim
340 if modinfo netdevsim | grep udp_tunnel >/dev/null; then
346 modprobe netdevsim
350 echo $NSIM_ID > /sys/bus/netdevsim/new_device
373 modprobe -r netdevsim
[all …]
Dfib_notifications.sh17 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
Dhw_stats_l3.sh14 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
Dfib.sh35 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
Ddevlink.sh15 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
622 echo $VF_COUNT > /sys/bus/netdevsim/devices/$DEV_NAME/sriov_numvfs
695 modprobe netdevsim
696 echo "$BUS_ADDR $PORT_COUNT" > /sys/bus/netdevsim/new_device
703 echo "$BUS_ADDR" > /sys/bus/netdevsim/del_device
704 modprobe -r netdevsim
Ddevlink_trap.sh24 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
Dnexthop.sh44 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.6.21/Documentation/networking/devlink/
Dnetdevsim.rst4 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 …]
Dindex.rst61 netdevsim
/linux-6.6.21/drivers/net/netdevsim/
Dnetdevsim.h93 struct netdevsim { struct
130 struct netdevsim * argument
132 void nsim_destroy(struct netdevsim *ns);
134 void nsim_ethtool_init(struct netdevsim *ns);
144 int nsim_bpf_init(struct netdevsim *ns);
145 void nsim_bpf_uninit(struct netdevsim *ns);
147 int nsim_bpf_disable_tc(struct netdevsim *ns);
160 static inline int nsim_bpf_init(struct netdevsim *ns) in nsim_bpf_init()
165 static inline void nsim_bpf_uninit(struct netdevsim *ns) in nsim_bpf_uninit()
174 static inline int nsim_bpf_disable_tc(struct netdevsim *ns) in nsim_bpf_disable_tc()
[all …]
Dethtool.c14 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 …]
DMakefile3 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
Dnetdev.c31 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit()
53 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu()
66 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64()
84 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac()
98 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan()
113 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate()
132 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk()
144 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en()
156 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust()
169 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config()
[all …]
Dmacsec.c11 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy()
37 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_secy()
66 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_secy()
84 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_secy()
106 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_rxsc()
141 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_rxsc()
168 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_rxsc()
199 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_rxsa()
226 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_rxsa()
253 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_rxsa()
[all …]
Dbpf.c41 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 …]
Dipsec.c16 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()
Dudp_tunnels.c15 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.6.21/tools/testing/selftests/net/
Ddrop_monitor_tests.sh20 NETDEVSIM_PATH=/sys/bus/netdevsim/
22 DEV=netdevsim${DEV_ADDR}
23 DEVLINK_DEV=netdevsim/${DEV}
43 modprobe netdevsim &> /dev/null
Drtnetlink.sh649 sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/
650 sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/
661 if [ ! -w /sys/bus/netdevsim/new_device ] ; then
662 modprobe -q netdevsim
671 echo "0" > /sys/bus/netdevsim/new_device
719 echo 0 > /sys/bus/netdevsim/del_device
720 $probed && rmmod netdevsim
853 sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/
855 sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/
859 if [ ! -w /sys/bus/netdevsim/new_device ] ; then
[all …]
/linux-6.6.21/tools/testing/selftests/tc-testing/
Dtdc.sh4 modprobe netdevsim
/linux-6.6.21/Documentation/networking/
Dnexthop-group-resilient.rst278 The netdevsim driver implements a mock offload of resilient groups, and
283 # echo 10 23 > /sys/kernel/debug/netdevsim/netdevsim10/fib/nexthop_bucket_activity
288 # echo 1 > /sys/kernel/debug/netdevsim/netdevsim10/fib/fail_nexthop_bucket_replace
290 Besides serving as an example, the interfaces that netdevsim exposes are
292 ``tools/testing/selftests/drivers/net/netdevsim/nexthop.sh`` makes use of
/linux-6.6.21/Documentation/process/
Dmaintainer-netdev.rst428 netdevsim section in Testing
431 ``netdevsim`` is a test driver which can be used to exercise driver
433 Mock-ups and tests based on ``netdevsim`` are strongly encouraged when
434 adding new APIs, but ``netdevsim`` in itself is **not** considered
437 We give no guarantees that ``netdevsim`` won't change in the future
440 ``netdevsim`` is reserved for use by upstream tests only, so any
441 new ``netdevsim`` features must be accompanied by selftests under

12