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
..
2021-07-05 14:08:24 -07:00
2021-07-13 09:43:50 -07:00
2021-07-03 11:13:22 -07:00
2021-06-30 15:51:09 -07:00
2021-07-05 14:08:24 -07:00
2021-07-05 14:08:24 -07:00
2021-07-01 13:04:41 -07:00
2021-06-28 12:44:17 -07:00
2021-05-20 15:10:57 -07:00
2021-06-14 13:17:10 -07:00
2021-06-01 17:05:04 -07:00
2021-04-16 15:31:02 -07:00
2021-05-20 15:10:57 -07:00
2021-04-13 15:13:13 -07:00
2021-05-19 12:01:44 -07:00