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