]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
i40e: Fix wrong mask used during DCB config
authorIvan Vecera <ivecera@redhat.com>
Thu, 30 Nov 2023 19:31:34 +0000 (20:31 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 13 Feb 2024 00:58:08 +0000 (16:58 -0800)
commit343bb39e1f25a73a38a03d98ca383495c0ed6e92
treeef9e5ed57e3172a2b095af164b9abe7106ac6abd
parentc73729b64bb692186da080602cd13612783f52ac
i40e: Fix wrong mask used during DCB config

Mask used for clearing PRTDCB_RETSTCC register in function
i40e_dcb_hw_rx_ets_bw_config() is incorrect as there is used
define I40E_PRTDCB_RETSTCC_ETSTC_SHIFT instead of define
I40E_PRTDCB_RETSTCC_ETSTC_MASK.

The PRTDCB_RETSTCC register is used to configure whether ETS
or strict priority is used as TSA in Rx for particular TC.

In practice it means that once the register is set to use ETS
as TSA then it is not possible to switch back to strict priority
without CoreR reset.

Fix the value in the clearing mask.

Fixes: 90bc8e003be2 ("i40e: Add hardware configuration for software based DCB")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_dcb.c