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-11 13:08:38 +01:00
2022-06-29 20:52:40 -07:00
2022-06-27 08:04:30 -04:00
2022-07-20 10:20:19 +02:00
2022-07-19 12:20:40 +02:00
2022-07-29 08:45:32 -07:00
2022-05-22 23:05:56 +01:00
2022-06-17 11:39:46 +01:00
2022-05-23 21:19:17 -07:00
2022-07-25 10:52:28 +01:00
2022-05-06 12:07:56 +01:00
2022-05-05 13:03:18 -07:00
2022-07-29 12:21:02 +01:00
2022-07-21 19:01:16 -07:00
2022-06-30 11:38:16 +02:00
2022-05-19 11:23:59 -07:00
2022-07-19 17:10:56 -07:00
2022-05-17 12:03:52 +02:00
2022-05-20 17:38:27 -07:00
2022-05-08 11:33:57 +01:00
2022-06-29 11:43:15 +02:00
2022-05-20 17:56:50 -07:00
2022-07-14 10:12:12 -07:00
2022-07-19 12:37:02 +02:00
2022-07-06 20:04:06 -07:00
2022-05-16 10:18:56 +01:00
2022-07-25 11:51:05 +01:00
2022-05-09 11:58:20 +01:00
2022-05-11 13:09:59 +01:00
2022-07-21 19:04:19 -07:00
2022-06-30 11:34:10 -07:00
2022-06-17 11:38:09 +01:00
2022-07-27 13:20:44 +01:00
2022-07-01 10:01:23 +02:00