i40e: use macros for vlan filtering registers
authorHuawei Xie <huawei.xie@intel.com>
Tue, 2 Dec 2014 09:02:06 +0000 (17:02 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 6 Dec 2014 10:08:35 +0000 (11:08 +0100)
commitbc8e0f501cf4c3bee3de8ee26a98e72e517cfe32
treeb2cdae63956ed539d0c81fd06b51fca756770573
parentfdef8f927f311a51ab69bbea4a7bff8e5463813c
i40e: use macros for vlan filtering registers

Add two macros I40E_VFTA_IDX and I40E_VFTA_BIT for vlan filter search and set.
Add vlan_id check in vlan filter search and set function.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c
lib/librte_pmd_i40e/i40e_ethdev.h