Przemyslaw Patynowski
93cb804eda
iavf: Fix 'tc qdisc show' listing too many queues
...
Fix tc qdisc show dev <ethX> root displaying too many fq_codel qdiscs.
tc_modify_qdisc, which is caller of ndo_setup_tc, expects driver to call
netif_set_real_num_tx_queues, which prepares qdiscs.
Without this patch, fq_codel qdiscs would not be adjusted to number of
queues on VF.
e.g.:
tc qdisc show dev <ethX>
qdisc mq 0: root
qdisc fq_codel 0: parent :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent :3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent :1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
tc qdisc add dev <ethX> root mqprio num_tc 2 map 1 0 0 0 0 0 0 0 queues 1@0 1@1 hw 1 mode channel shaper bw_rlimit max_rate 5000Mbit 150Mbit
tc qdisc show dev <ethX>
qdisc mqprio 8003: root tc 2 map 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
queues:(0:0) (1:1)
mode:channel
shaper:bw_rlimit max_rate:5Gbit 150Mbit
qdisc fq_codel 0: parent 8003:4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent 8003:3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent 8003:2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent 8003:1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
While after fix:
tc qdisc add dev <ethX> root mqprio num_tc 2 map 1 0 0 0 0 0 0 0 queues 1@0 1@1 hw 1 mode channel shaper bw_rlimit max_rate 5000Mbit 150Mbit
tc qdisc show dev <ethX> #should show 2, shows 4
qdisc mqprio 8004: root tc 2 map 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
queues:(0:0) (1:1)
mode:channel
shaper:bw_rlimit max_rate:5Gbit 150Mbit
qdisc fq_codel 0: parent 8004:2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
qdisc fq_codel 0: parent 8004:1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Fixes: d5b33d0244 ("i40evf: add ndo_setup_tc callback to i40evf")
Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com >
Co-developed-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com >
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com >
Co-developed-by: Kiran Patil <kiran.patil@intel.com >
Signed-off-by: Kiran Patil <kiran.patil@intel.com >
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com >
Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com >
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2022-07-29 08:45:32 -07:00
..
2022-05-08 11:33:57 +01:00
2022-03-11 22:59:03 -08:00
2022-05-08 11:33:57 +01:00
2022-04-29 11:56:41 +01:00
2022-06-08 20:52:41 -07:00
2022-04-30 14:00:45 +01:00
2022-06-13 23:12:39 -07:00
2022-03-23 10:30:05 -07:00
2022-05-05 15:53:02 -07:00
2022-07-14 13:03:21 +02:00
2022-05-08 11:33:57 +01:00
2022-05-08 11:33:57 +01:00
2022-07-12 20:35:56 -07:00
2022-04-30 14:00:45 +01:00
2022-05-23 21:19:17 -07:00
2022-04-11 20:49:21 -07:00
2022-05-17 17:39:49 -07:00
2022-07-20 10:14:49 +01:00
2022-05-22 20:44:29 +01:00
2022-04-29 11:56:41 +01:00
2022-05-23 11:43:51 +01:00
2022-07-19 11:51:16 +02:00
2022-05-10 09:48:09 +02:00
2022-05-08 11:33:57 +01:00
2022-07-13 13:29:07 +01:00
2022-05-28 20:20:42 +01:00
2022-07-28 12:54:10 +02:00
2022-03-16 19:29:00 -07:00
2022-06-13 11:56:01 +01:00
2022-06-22 11:04:32 -07:00
2022-03-24 13:13:26 -07:00
2022-07-04 11:09:57 +01:00
2022-07-29 08:45:32 -07:00
2022-07-26 13:05:44 +02:00
2022-07-19 17:27:18 -07:00
2022-07-20 11:00:46 +01:00
2022-04-05 17:32:05 -07:00
2022-07-18 20:00:00 -07:00
2022-05-08 11:33:57 +01:00
2022-05-08 11:33:57 +01:00
2022-07-07 18:05:36 -07:00
2022-05-08 11:33:57 +01:00
2022-04-26 17:09:24 -07:00
2022-06-22 13:15:49 +01:00
2022-07-25 10:52:28 +01:00
2022-04-30 14:00:45 +01:00
2022-05-08 11:33:57 +01:00
2022-04-29 11:56:41 +01:00
2022-03-14 10:04:28 -07:00
2022-05-09 15:49:12 -07:00
2022-06-04 14:04:27 -07:00
2022-03-11 23:17:24 -08:00
2022-07-06 19:53:21 -07:00
2022-05-16 10:14:27 +01:00
2022-05-05 15:54:12 -07:00
2022-07-27 18:20:43 -07:00
2022-06-27 21:48:51 -07:00
2022-05-05 15:54:12 -07:00
2022-07-28 10:43:04 -07:00
2022-07-13 14:53:48 +01:00
2022-05-19 17:46:56 -07:00
2022-05-16 10:18:55 +01:00
2022-07-07 17:21:44 -07:00
2022-05-08 11:33:57 +01:00
2022-04-29 11:56:42 +01:00
2022-05-08 11:33:57 +01:00
2022-06-16 11:08:38 -07:00
2022-05-08 11:33:57 +01:00
2022-05-05 15:53:28 -07:00
2022-05-05 15:53:28 -07:00
2022-05-10 11:31:32 +02:00
2022-05-08 11:33:57 +01:00
2022-05-05 15:54:12 -07:00
2022-05-10 11:31:32 +02:00