ice: config netdev tc before setting queues number
Subsystems (2)
PATCH v2 1/1 ice: config netdev tc before setting queues number
After lowering number of tx queues the warning appears:
"Number of in use tx queues changed invalidating tc mappings. Priority traffic classification disabled!"
Example command to reproduce:
ethtool -L enp24s0f0 tx 36 rx 36
Fix this by setting correct tc mapping before setting real number of queues on netdev.
--- drivers/net/ethernet/intel/ice/ice_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/ice/ice_main.c +2 -0
@@ -6918,6 +6918,8 @@ int ice_vsi_open(struct ice_vsi *vsi)if (err) goto err_setup_rx; +ice_vsi_cfg_netdev_tc (vsi, vsi->tc_cfg.ena_tc); +if (vsi->type ==ICE_VSI_PF ) {/* Notify the stack of the actual queue counts. */ err =netif_set_real_num_tx_queues (vsi->netdev, vsi->num_txq);
Signature · 6 lines
2.36.1 _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Quoted 19 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Michal Swiatkowski
Sent: Monday, August 8, 2022 3:29 PM
To: [email protected]
Subject: [Intel-wired-lan] [PATCH net v2] ice: config netdev tc before setting queues numberAfter lowering number of tx queues the warning appears:
"Number of in use tx queues changed invalidating tc mappings. Priority traffic classification disabled!"
Example command to reproduce:
ethtool -L enp24s0f0 tx 36 rx 36Fix this by setting correct tc mapping before setting real number of queues on netdev.
Quoted 7 lines
Fixes 0754d65bd4be5 ("ice: Add infrastructure for mqprio support via
ndo_setup_tc")Signed-off-by Michal Swiatkowski <[email protected]>--- drivers/net/ethernet/intel/ice/ice_main.c | 2 ++ 1 file changed, 2 insertions(+)
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan