net/i40e: fix ESP flow creation
authorBernard Iremonger <bernard.iremonger@intel.com>
Tue, 28 Jan 2020 13:48:45 +0000 (13:48 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commit2ab5c84605f03e125eaa917cf6c1d5338729098e
tree0eccc6fb4345d2c894e663f83f507da7364dff24
parent1b473b28dc1cc6695f2cd5599d2f800d726bedac
net/i40e: fix ESP flow creation

Merge of ESP and L2TP code in i40e_fdir.c added checks on
cus_pctype->index which caused flow creation for ESP to fail.

Added fill_ipv4_function()
Refactored code to have one path for customized and non customized
pctype's.

Fixes: c5f8365bc85d ("net/i40e: support flow director for L2TPv3 over IP")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Rory Sexton <rory.sexton@intel.com>
drivers/net/i40e/i40e_fdir.c