linux-stable/drivers/net/netdevsim
Peilin Ye d4861fc6be netdevsim: Add multi-queue support
Currently netdevsim only supports a single queue per port, which is
insufficient for testing multi-queue TC schedulers e.g. sch_mq.  Extend
the current sysfs interface so that users can create ports with multiple
queues:

$ echo "[ID] [PORT_COUNT] [NUM_QUEUES]" > /sys/bus/netdevsim/new_device

As an example, echoing "2 4 8" creates 4 ports, with 8 queues per port.
Note, this is compatible with the current interface, with default number
of queues set to 1.  For example, echoing "2 4" creates 4 ports with 1
queue per port; echoing "2" simply creates 1 port with 1 queue.

Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-16 11:17:56 -07:00
..
Makefile netdevsim: Add dummy psample implementation 2021-03-14 15:00:43 -07:00
bpf.c netdevsim: Add debugfs toggle to reject BPF programs in verifier 2020-12-09 16:27:42 +01:00
bus.c netdevsim: Add multi-queue support 2021-07-16 11:17:56 -07:00
dev.c drivers: net: netdevsim: fix devlink_trap selftests failing 2021-06-18 11:28:27 -07:00
ethtool.c netdevsim: add FEC settings support 2021-03-31 14:15:23 -07:00
fib.c netdevsim: remove unneeded semicolon 2021-04-06 16:27:33 -07:00
health.c netdevsim: switch to memdup_user_nul() 2021-03-24 16:26:58 -07:00
ipsec.c net: netdevsim: use xso.real_dev instead of xso.dev in callback functions of struct xfrmdev_ops 2021-07-06 10:36:59 -07:00
netdev.c netdevsim: Add multi-queue support 2021-07-16 11:17:56 -07:00
netdevsim.h netdevsim: Add multi-queue support 2021-07-16 11:17:56 -07:00
psample.c netdevsim: Only use sampling truncation length when valid 2021-04-22 13:23:56 -07:00
udp_tunnels.c netdevsim: set .owner to THIS_MODULE 2020-11-17 14:08:59 -08:00