ice: config netdev tc before setting queues number
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Mon, 8 Aug 2022 09:58:54 +0000 (11:58 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Sep 2022 20:30:51 +0000 (13:30 -0700)
commit122045ca770492660005c22379995506f13efea8
tree1d6e6867ad7f178f5793c7480be0d684c98f0d92
parentda847246ab80610c5acca34df5893bee1d8cf7c2
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: 0754d65bd4be5 ("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>
drivers/net/ethernet/intel/ice/ice_main.c