diff mbox series

[v4,3/3] net/i40e: add ESP patterns

Message ID 1586949255-17234-4-git-send-email-bernard.iremonger@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series configure RSS hash | expand

Checks

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

Commit Message

Bernard Iremonger April 15, 2020, 11:14 a.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(-)

Comments

Xing, Beilei April 16, 2020, 1:13 a.m. UTC | #1
> -----Original Message-----
> From: Iremonger, Bernard <bernard.iremonger@intel.com>
> Sent: Wednesday, April 15, 2020 7:14 PM
> To: dev@dpdk.org; Xing, Beilei <beilei.xing@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>; Doherty, Declan <declan.doherty@intel.com>
> Cc: Ananyev, Konstantin <konstantin.ananyev@intel.com>; Iremonger,
> Bernard <bernard.iremonger@intel.com>
> Subject: [PATCH v4 3/3] net/i40e: add ESP patterns
> 
> 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(-)
> 
> diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index
> f72a54b..416b390 100644
> --- a/doc/guides/nics/i40e.rst
> +++ b/doc/guides/nics/i40e.rst
> @@ -509,7 +509,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
> 1d0eaf6..e65a07a 100644
> --- a/drivers/net/i40e/i40e_flow.c
> +++ b/drivers/net/i40e/i40e_flow.c
> @@ -4507,11 +4507,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;
> --
> 2.7.4

Acked-by: Beilei Xing <beilei.xing@intel.com>
diff mbox series

Patch

diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst
index f72a54b..416b390 100644
--- a/doc/guides/nics/i40e.rst
+++ b/doc/guides/nics/i40e.rst
@@ -509,7 +509,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 1d0eaf6..e65a07a 100644
--- a/drivers/net/i40e/i40e_flow.c
+++ b/drivers/net/i40e/i40e_flow.c
@@ -4507,11 +4507,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;