Searched refs:netdevsim (Results 1 - 24 of 24) sorted by relevance
/linux-master/tools/testing/selftests/drivers/net/netdevsim/ |
H A 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 46 # Make a netdevsim 49 if ! $(lsmod | grep -q netdevsim); then 50 modprobe netdevsim 53 echo $NSIM_ID $@ > /sys/bus/netdevsim/new_device 56 ls /sys/bus/netdevsim/device [all...] |
H A 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
|
H A 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 80 echo "linking with non-existent netdevsim shoul [all...] |
H A D | psample.sh | 4 # This test is for checking the psample module. It makes use of netdevsim 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
|
H A 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
|
H A 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 107 # Helpers for netdevsim port/type encoding 258 modprobe netdevsim 266 echo $NSIM_ID > /sys/bus/netdevsim/new_device 336 modprobe -r netdevsim 341 if modinfo netdevsim | gre [all...] |
H A 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 205 check_err $? "$type stats reported as used before either device or netdevsim request" 215 check_err $? "$type stats reported as not used after both device and netdevsim request" 221 check_err $? "$type stats reported as used after netdevsim reques [all...] |
H A D | fib.sh | 4 # This test is for checking the FIB offload API. It makes use of netdevsim 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
|
H A D | devlink_trap.sh | 5 # netdevsim which implements the required callbacks. 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 41 echo "SKIP: No netdevsim support" 45 if [ -d "${NETDEVSIM_PATH}/devices/netdevsim${DEV_ADDR}" ]; then 46 echo "SKIP: Device netdevsim${DEV_ADDR} already exists" 484 echo "Failed to create netdevsim devic [all...] |
H A 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 346 # insert two routes. That is over the limit of the netdevsim 347 # instance in the first namespace. Move the netdevsim instance 392 [ "$driver" == "netdevsim" ] 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_devic [all...] |
H A D | nexthop.sh | 4 # This test is for checking the nexthop offload API. It makes use of netdevsim 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-master/drivers/net/netdevsim/ |
H A 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
|
H A D | netdevsim.h | 29 #define DRV_NAME "netdevsim" 99 struct netdevsim { struct 139 struct netdevsim __rcu *peer; 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 *n [all...] |
H A D | ethtool.c | 8 #include "netdevsim.h" 14 struct netdevsim *ns = netdev_priv(dev); 25 struct netdevsim *ns = netdev_priv(dev); 35 struct netdevsim *ns = netdev_priv(dev); 50 struct netdevsim *ns = netdev_priv(dev); 61 struct netdevsim *ns = netdev_priv(dev); 72 struct netdevsim *ns = netdev_priv(dev); 82 struct netdevsim *ns = netdev_priv(dev); 94 struct netdevsim *ns = netdev_priv(dev); 103 struct netdevsim *n [all...] |
H A D | macsec.c | 4 #include "netdevsim.h" 6 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) 32 struct netdevsim *ns = netdev_priv(ctx->netdev); 61 struct netdevsim *ns = netdev_priv(ctx->netdev); 79 struct netdevsim *ns = netdev_priv(ctx->netdev); 101 struct netdevsim *ns = netdev_priv(ctx->netdev); 136 struct netdevsim *ns = netdev_priv(ctx->netdev); 163 struct netdevsim *ns = netdev_priv(ctx->netdev); 194 struct netdevsim *ns = netdev_priv(ctx->netdev); 221 struct netdevsim *n [all...] |
H A D | netdev.c | 29 #include "netdevsim.h" 52 struct netdevsim *ns = netdev_priv(dev); 55 struct netdevsim *peer_ns; 102 struct netdevsim *ns = netdev_priv(dev); 115 struct netdevsim *ns = netdev_priv(dev); 134 struct netdevsim *ns = netdev_priv(dev); 148 struct netdevsim *ns = netdev_priv(dev); 163 struct netdevsim *ns = netdev_priv(dev); 182 struct netdevsim *ns = netdev_priv(dev); 194 struct netdevsim *n [all...] |
H A D | ipsec.c | 8 #include "netdevsim.h" 16 struct netdevsim *ns = filp->private_data; 133 struct netdevsim *ns; 202 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); 219 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); 233 bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb) 280 void nsim_ipsec_init(struct netdevsim *ns) 296 void nsim_ipsec_teardown(struct netdevsim *ns)
|
H A D | bpf.c | 24 #include "netdevsim.h" 27 bpf_verifier_log_write(env, "[netdevsim] " fmt, ##__VA_ARGS__) 41 struct netdevsim *ns; 73 pr_vlog(env, "Hello from netdevsim!\n"); 87 static bool nsim_xdp_offload_active(struct netdevsim *ns) 104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) 123 struct netdevsim *ns = cb_priv; 143 "netdevsim configured to reject BPF TC offload"); 149 "netdevsim configured to reject unbound programs"); 173 int nsim_bpf_disable_tc(struct netdevsim *n [all...] |
H A D | udp_tunnels.c | 9 #include "netdevsim.h" 15 struct netdevsim *ns = netdev_priv(dev); 44 struct netdevsim *ns = netdev_priv(dev); 73 struct netdevsim *ns = netdev_priv(dev); 113 struct netdevsim *ns = netdev_priv(dev); 133 struct netdevsim *ns = netdev_priv(dev);
|
H A D | bus.c | 16 #include "netdevsim.h" 237 struct netdevsim *nsim_a, *nsim_b, *peer; 273 pr_err("Device with ifindex %u in netnsfd %d is not a netdevsim\n", 286 pr_err("Device with ifindex %u in netnsfd %d is not a netdevsim\n", 292 pr_err("Cannot link a netdevsim to itself\n"); 328 struct netdevsim *nsim, *peer; 356 pr_err("Device with ifindex %u in netnsfd %d is not a netdevsim\n",
|
/linux-master/tools/testing/selftests/net/ |
H A 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
|
H A D | rtnetlink.sh | 564 sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ 565 sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/ 578 # setup netdevsim since dummydev doesn't have offload support 579 if [ ! -w /sys/bus/netdevsim/new_device ] ; then 580 run_cmd modprobe -q netdevsim 583 end_test "SKIP: macsec_offload can't load netdevsim" 589 echo "0" > /sys/bus/netdevsim/new_device 601 end_test "FAIL: macsec_offload netdevsim doesn't support MACsec offload" 619 echo 0 > /sys/bus/netdevsim/del_device 620 $probed && rmmod netdevsim [all...] |
/linux-master/tools/testing/selftests/tc-testing/ |
H A D | tdc.sh | 15 try_modprobe netdevsim
|
/linux-master/drivers/net/ |
H A D | Makefile | 89 obj-$(CONFIG_NETDEVSIM) += netdevsim/
|
Completed in 416 milliseconds