Skip to content

Commit 122045c

Browse files
Michal Swiatkowskianguy11
authored andcommitted
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. Fixes: 0754d65 ("ice: Add infrastructure for mqprio support via ndo_setup_tc") Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent da84724 commit 122045c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6858,6 +6858,8 @@ int ice_vsi_open(struct ice_vsi *vsi)
68586858
if (err)
68596859
goto err_setup_rx;
68606860

6861+
ice_vsi_cfg_netdev_tc(vsi, vsi->tc_cfg.ena_tc);
6862+
68616863
if (vsi->type == ICE_VSI_PF) {
68626864
/* Notify the stack of the actual queue counts. */
68636865
err = netif_set_real_num_tx_queues(vsi->netdev, vsi->num_txq);

0 commit comments

Comments
 (0)