Skip to content

Commit

Permalink
net/i40e: fix pctype configuration for X722
Browse files Browse the repository at this point in the history
[ upstream commit b95179d ]

To make X722's PCTYPE is compatible with X710, the PCTYPE in the
FD programming descriptor is translated into different types by using
GLQF_FD_PCTYPE table. But the types of 'UNICAST_IPV4_UDP'
and 'MULTICAST_IPV4_UDP' are only supported for X722, so that
the corresponding registers can not be configured after translation.

This patch removes the transition before the FD filter is programmed.

Fixes: ef4c16f ("net/i40e: refactor RSS flow")

Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
Tested-by: Lingli Chen <linglix.chen@intel.com>
  • Loading branch information
yemj-odc authored and kevintraynor committed Nov 23, 2022
1 parent 12164b4 commit 43acbda
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/i40e/i40e_hash.c
Expand Up @@ -659,10 +659,6 @@ i40e_hash_config_pctype_symmetric(struct i40e_hw *hw,
struct i40e_pf *pf = &((struct i40e_adapter *)hw->back)->pf;
uint32_t reg;

/* For X722, get translated pctype in fd pctype register */
if (hw->mac.type == I40E_MAC_X722)
pctype = i40e_read_rx_ctl(hw, I40E_GLQF_FD_PCTYPES(pctype));

reg = i40e_read_rx_ctl(hw, I40E_GLQF_HSYM(pctype));
if (symmetric) {
if (reg & I40E_GLQF_HSYM_SYMH_ENA_MASK)
Expand Down

0 comments on commit 43acbda

Please sign in to comment.