Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/netdevsim/
Dnetdevsim.h51 struct netdevsim { struct
77 struct netdevsim * argument
79 void nsim_destroy(struct netdevsim *ns);
84 int nsim_bpf_init(struct netdevsim *ns);
85 void nsim_bpf_uninit(struct netdevsim *ns);
87 int nsim_bpf_disable_tc(struct netdevsim *ns);
100 static inline int nsim_bpf_init(struct netdevsim *ns) in nsim_bpf_init()
105 static inline void nsim_bpf_uninit(struct netdevsim *ns) in nsim_bpf_uninit()
114 static inline int nsim_bpf_disable_tc(struct netdevsim *ns) in nsim_bpf_disable_tc()
142 struct netdevsim *ns;
[all …]
Dnetdev.c30 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit()
52 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu()
65 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64()
83 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac()
97 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan()
112 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate()
126 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk()
138 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en()
150 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust()
163 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config()
[all …]
DMakefile3 obj-$(CONFIG_NETDEVSIM) += netdevsim.o
5 netdevsim-objs := \
9 netdevsim-objs += \
14 netdevsim-objs += ipsec.o
Dbpf.c41 struct netdevsim *ns;
82 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active()
99 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload()
118 struct netdevsim *ns = cb_priv; in nsim_bpf_setup_tc_block_cb()
168 int nsim_bpf_disable_tc(struct netdevsim *ns) in nsim_bpf_disable_tc()
175 static int nsim_xdp_offload_prog(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_xdp_offload_prog()
188 nsim_xdp_set_prog(struct netdevsim *ns, struct netdev_bpf *bpf, in nsim_xdp_set_prog()
289 static int nsim_setup_prog_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_checks()
303 nsim_setup_prog_hw_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_hw_checks()
482 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()
132 struct netdevsim *ns; in nsim_ipsec_add_sa()
197 struct netdevsim *ns = netdev_priv(xs->xso.dev); in nsim_ipsec_del_sa()
214 struct netdevsim *ns = netdev_priv(xs->xso.dev); in nsim_ipsec_offload_ok()
228 bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb) in nsim_ipsec_tx()
275 void nsim_ipsec_init(struct netdevsim *ns) in nsim_ipsec_init()
291 void nsim_ipsec_teardown(struct netdevsim *ns) in nsim_ipsec_teardown()
Dsdev.c15 struct netdevsim_shared_dev *nsim_sdev_get(struct netdevsim *joinns) in nsim_sdev_get()
/Linux-v5.4/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh12 DEV_NAME=netdevsim$BUS_ADDR
13 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV_NAME/net/
14 DEBUGFS_DIR=/sys/kernel/debug/netdevsim/$DEV_NAME/
15 DL_HANDLE=netdevsim/$DEV_NAME
147 modprobe netdevsim
148 echo "$BUS_ADDR $PORT_COUNT" > /sys/bus/netdevsim/new_device
155 echo "$BUS_ADDR" > /sys/bus/netdevsim/del_device
156 modprobe -r netdevsim
Ddevlink_trap.sh22 NETDEVSIM_PATH=/sys/bus/netdevsim/
24 DEV=netdevsim${DEV_ADDR}
25 DEVLINK_DEV=netdevsim/${DEV}
34 modprobe netdevsim &> /dev/null
/Linux-v5.4/Documentation/networking/
Ddevlink-trap-netdevsim.rst4 Devlink Trap netdevsim
10 .. list-table:: List of Driver-specific Traps Registered by ``netdevsim``
Dindex.rst18 devlink-trap-netdevsim
Ddevlink-trap.rst175 * :doc:`/devlink-trap-netdevsim`
204 See ``tools/testing/selftests/drivers/net/netdevsim/devlink_trap.sh`` for a
/Linux-v5.4/tools/testing/selftests/net/
Drtnetlink.sh738 sysfsd=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/
740 sysfsnet=/sys/bus/netdevsim/devices/netdevsim0/net/
744 if [ ! -w /sys/bus/netdevsim/new_device ] ; then
745 modprobe -q netdevsim
754 echo "0" > /sys/bus/netdevsim/new_device
831 $probed && rmmod netdevsim
/Linux-v5.4/drivers/net/
DMakefile80 obj-$(CONFIG_NETDEVSIM) += netdevsim/
DKconfig516 will be called netdevsim.
/Linux-v5.4/
DMAINTAINERS11433 F: drivers/net/netdevsim/*