[v2,3/3] net/i40e: add ESP patterns
diff mbox series

Message ID 1585151755-15837-4-git-send-email-bernard.iremonger@intel.com
State Superseded
Delegated to: Ferruh Yigit
Headers show
Series
  • Untitled series #9042
Related show

Checks

Context Check Description
ci/Intel-compilation fail apply issues
ci/checkpatch success coding style OK

Commit Message

Iremonger, Bernard March 25, 2020, 3:55 p.m. UTC
add ESP patterns to i40e_flow_parse_rss_pattern().
update i40e PMD user guide with download link for esp-ah.pkg file.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 doc/guides/nics/i40e.rst     | 3 ++-
 drivers/net/i40e/i40e_flow.c | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst
index 03b117a..65e4634 100644
--- a/doc/guides/nics/i40e.rst
+++ b/doc/guides/nics/i40e.rst
@@ -508,7 +508,8 @@  https://downloadcenter.intel.com/download/27587.
 PPPoE package is released, and it can be downloaded from
 https://downloadcenter.intel.com/download/28040.
 
-ESP-AH package is not released yet.
+ESP-AH package is released, and it can be downloaded from
+https://downloadcenter.intel.com/download/29446.
 
 Load a profile which supports GTP and store backup profile:
 
diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c
index 4774fde..85f3704 100644
--- a/drivers/net/i40e/i40e_flow.c
+++ b/drivers/net/i40e/i40e_flow.c
@@ -4456,11 +4456,15 @@  i40e_flow_parse_rss_pattern(__rte_unused struct rte_eth_dev *dev,
 		{ pattern_fdir_ipv4_tcp, ETH_RSS_NONFRAG_IPV4_TCP },
 		{ pattern_fdir_ipv4_udp, ETH_RSS_NONFRAG_IPV4_UDP },
 		{ pattern_fdir_ipv4_sctp, ETH_RSS_NONFRAG_IPV4_SCTP },
+		{ pattern_fdir_ipv4_esp, ETH_RSS_ESP },
+		{ pattern_fdir_ipv4_udp_esp, ETH_RSS_ESP },
 		{ pattern_fdir_ipv6,
 			ETH_RSS_FRAG_IPV6 | ETH_RSS_NONFRAG_IPV6_OTHER },
 		{ pattern_fdir_ipv6_tcp, ETH_RSS_NONFRAG_IPV6_TCP },
 		{ pattern_fdir_ipv6_udp, ETH_RSS_NONFRAG_IPV6_UDP },
 		{ pattern_fdir_ipv6_sctp, ETH_RSS_NONFRAG_IPV6_SCTP },
+		{ pattern_fdir_ipv6_esp, ETH_RSS_ESP },
+		{ pattern_fdir_ipv6_udp_esp, ETH_RSS_ESP },
 	};
 
 	p_info->types = I40E_RSS_TYPE_INVALID;