diff mbox series

[v3,2/3] app/testpmd: handle RSS offload types ESP and AH

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

Checks

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

Commit Message

Iremonger, Bernard March 31, 2020, 1:56 p.m. UTC
parse RSS offload types ESP and AH
add printf for rss_hf

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 app/test-pmd/cmdline.c | 4 +++-
 app/test-pmd/config.c  | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Ori Kam April 2, 2020, 11:49 a.m. UTC | #1
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Bernard Iremonger
> Sent: Tuesday, March 31, 2020 4:57 PM
> To: dev@dpdk.org; beilei.xing@intel.com; qi.z.zhang@intel.com;
> declan.doherty@intel.com
> Cc: konstantin.ananyev@intel.com; Bernard Iremonger
> <bernard.iremonger@intel.com>
> Subject: [dpdk-dev] [PATCH v3 2/3] app/testpmd: handle RSS offload types ESP
> and AH
> 
> parse RSS offload types ESP and AH
> add printf for rss_hf
> 
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> ---
>  app/test-pmd/cmdline.c | 4 +++-
>  app/test-pmd/config.c  | 2 ++
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
> index a037a55..997f063 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -2338,8 +2338,10 @@ cmd_config_rss_parsed(void *parsed_result,
>  				i, -diag, strerror(-diag));
>  		}
>  	}
> -	if (all_updated && !use_default)
> +	if (all_updated && !use_default) {
>  		rss_hf = rss_conf.rss_hf;
> +		printf("rss_hf %#"PRIx64"\n", rss_hf);
> +	}
>  }
> 
>  cmdline_parse_token_string_t cmd_config_rss_port =
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
> index 8cf84cc..f7d6dd9 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -106,6 +106,8 @@ const struct rss_type_info rss_type_table[] = {
>  	{ "l3-dst-only", ETH_RSS_L3_DST_ONLY },
>  	{ "l4-src-only", ETH_RSS_L4_SRC_ONLY },
>  	{ "l4-dst-only", ETH_RSS_L4_DST_ONLY },
> +	{ "esp", ETH_RSS_ESP },
> +	{ "ah", ETH_RSS_AH },
>  	{ NULL, 0 },
>  };
> 
> --
> 2.7.4

Acked-by: Ori Kam <orika@mellanox.com>
Thanks,
Ori
diff mbox series

Patch

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index a037a55..997f063 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -2338,8 +2338,10 @@  cmd_config_rss_parsed(void *parsed_result,
 				i, -diag, strerror(-diag));
 		}
 	}
-	if (all_updated && !use_default)
+	if (all_updated && !use_default) {
 		rss_hf = rss_conf.rss_hf;
+		printf("rss_hf %#"PRIx64"\n", rss_hf);
+	}
 }
 
 cmdline_parse_token_string_t cmd_config_rss_port =
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 8cf84cc..f7d6dd9 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -106,6 +106,8 @@  const struct rss_type_info rss_type_table[] = {
 	{ "l3-dst-only", ETH_RSS_L3_DST_ONLY },
 	{ "l4-src-only", ETH_RSS_L4_SRC_ONLY },
 	{ "l4-dst-only", ETH_RSS_L4_DST_ONLY },
+	{ "esp", ETH_RSS_ESP },
+	{ "ah", ETH_RSS_AH },
 	{ NULL, 0 },
 };