net/i40e: remove unnecessary FDIR mask configuration
authorBeilei Xing <beilei.xing@intel.com>
Thu, 29 Mar 2018 06:33:58 +0000 (14:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 15:25:45 +0000 (17:25 +0200)
Remove unnecessary FDIR mask configuration, otherwise
flow directory mask will be changed when configuring
hash input set.

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/rte_pmd_i40e.c

index 3577eff..f2d9619 100644 (file)
@@ -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) |