net/i40e: add dynamic mapping of SW flow types to HW pctypes
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Wed, 4 Oct 2017 12:52:10 +0000 (13:52 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:50 +0000 (02:49 +0200)
commita286ebeb0714b0c766d175561538e331ec997bd6
tree9eecad8d0650e1327fd7003cc0f0ad0af913eeae
parent4553d4928968e0a546c4b37385baaf89010b7e02
net/i40e: add dynamic mapping of SW flow types to HW pctypes

Implement dynamic mapping of software flow types to hardware pctypes.
This allows to add new flow types and pctypes for DDP without changing
API of the driver. The mapping table is located in private
data area for particular network adapter and can be individually
modified with set of appropriate functions.

Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_fdir.c
drivers/net/i40e/i40e_flow.c
drivers/net/i40e/i40e_rxtx.c
drivers/net/i40e/i40e_rxtx.h