From db2ed70bbbf58de4f66dfa1c9cbb46438ebd363e Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Thu, 29 Mar 2018 14:33:58 +0800 Subject: [PATCH] net/i40e: remove unnecessary FDIR mask configuration Remove unnecessary FDIR mask configuration, otherwise flow directory mask will be changed when configuring hash input set. Signed-off-by: Beilei Xing Reviewed-by: Kirill Rybalchenko Acked-by: Qi Zhang --- drivers/net/i40e/rte_pmd_i40e.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c index 3577eff76f..f2d961945c 100644 --- a/drivers/net/i40e/rte_pmd_i40e.c +++ b/drivers/net/i40e/rte_pmd_i40e.c @@ -3101,10 +3101,6 @@ rte_pmd_i40e_inset_set(uint16_t port, uint8_t pctype, return -ENOTSUP; } - /* Clear mask first */ - for (i = 0; i < 2; i++) - i40e_check_write_reg(hw, I40E_GLQF_FD_MSK(i, pctype), 0); - inset_reg = inset->inset; for (i = 0; i < 2; i++) mask_reg[i] = (inset->mask[i].field_idx << 16) | -- 2.20.1