From 4e719bd52dc7bd808823119e1edbac942cd10576 Mon Sep 17 00:00:00 2001 From: Dapeng Yu Date: Tue, 26 Jan 2021 17:52:11 +0800 Subject: [PATCH] net/i40e: fix register setting for hash enable The original code causes wrong value to be set into PFQF_HENA register because unnecessary calling to get translated pctype value for X722 NIC. As a result RSS is not working. So remove the unnecessary translation. Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow") Cc: stable@dpdk.org Signed-off-by: Dapeng Yu Acked-by: Beilei Xing --- drivers/net/i40e/i40e_hash.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/i40e/i40e_hash.c b/drivers/net/i40e/i40e_hash.c index 9271797a77..b1cb24f437 100644 --- a/drivers/net/i40e/i40e_hash.c +++ b/drivers/net/i40e/i40e_hash.c @@ -678,10 +678,6 @@ i40e_hash_enable_pctype(struct i40e_hw *hw, { uint32_t reg, reg_val, mask; - /* 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)); - if (pctype < 32) { mask = BIT(pctype); reg = I40E_PFQF_HENA(0); -- 2.20.1