app/testpmd: handle RSS offload types ESP and AH
authorBernard Iremonger <bernard.iremonger@intel.com>
Wed, 15 Apr 2020 11:14:14 +0000 (12:14 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
Parse RSS offload types ESP and AH add printf for rss_hf

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Ori Kam <orika@mellanox.com>
app/test-pmd/cmdline.c
app/test-pmd/config.c

index 7dc4eec..a36c505 100644 (file)
@@ -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 =
index 71aeb54..69c5633 100644 (file)
@@ -108,6 +108,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 },
 };