From d2df6e2cc50154aa869dbf0a8e218c08ceac18e1 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Thu, 8 Apr 2021 14:47:44 +0530 Subject: [PATCH] app/testpmd: fix missing MPLS tokens for RSS This patch adds missing MPLS tokens in for RSS config. Fixes: d810252857c9 ("ethdev: add MPLS RSS offload type") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Reviewed-by: Ferruh Yigit --- app/test-pmd/cmdline.c | 4 ++-- app/test-pmd/config.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f44116b087..56cf0bf405 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2423,7 +2423,7 @@ cmdline_parse_token_string_t cmd_config_rss_hash_key_rss_type = "ipv6-tcp-ex#ipv6-udp-ex#" "l3-src-only#l3-dst-only#l4-src-only#l4-dst-only#" "l2-src-only#l2-dst-only#s-vlan#c-vlan#" - "l2tpv3#esp#ah#pfcp#pppoe#gtpu#ecpri"); + "l2tpv3#esp#ah#pfcp#pppoe#gtpu#ecpri#mpls"); cmdline_parse_token_string_t cmd_config_rss_hash_key_value = TOKEN_STRING_INITIALIZER(struct cmd_config_rss_hash_key, key, NULL); @@ -2436,7 +2436,7 @@ cmdline_parse_inst_t cmd_config_rss_hash_key = { "l2-payload|ipv6-ex|ipv6-tcp-ex|ipv6-udp-ex|" "l3-src-only|l3-dst-only|l4-src-only|l4-dst-only|" "l2-src-only|l2-dst-only|s-vlan|c-vlan|" - "l2tpv3|esp|ah|pfcp|pppoe|gtpu|ecpri " + "l2tpv3|esp|ah|pfcp|pppoe|gtpu|ecpri|mpls " "", .tokens = { (void *)&cmd_config_rss_hash_key_port, diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index d774610419..a8bd664097 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -87,7 +87,7 @@ const struct rss_type_info rss_type_table[] = { { "all", ETH_RSS_ETH | ETH_RSS_VLAN | ETH_RSS_IP | ETH_RSS_TCP | ETH_RSS_UDP | ETH_RSS_SCTP | ETH_RSS_L2_PAYLOAD | ETH_RSS_L2TPV3 | ETH_RSS_ESP | ETH_RSS_AH | ETH_RSS_PFCP | - ETH_RSS_GTPU | ETH_RSS_ECPRI}, + ETH_RSS_GTPU | ETH_RSS_ECPRI | ETH_RSS_MPLS}, { "none", 0 }, { "eth", ETH_RSS_ETH }, { "l2-src-only", ETH_RSS_L2_SRC_ONLY }, @@ -137,6 +137,7 @@ const struct rss_type_info rss_type_table[] = { { "pppoe", ETH_RSS_PPPOE }, { "gtpu", ETH_RSS_GTPU }, { "ecpri", ETH_RSS_ECPRI }, + { "mpls", ETH_RSS_MPLS }, { NULL, 0 }, }; -- 2.20.1