app/testpmd: add GTPU to RSS hash commands
Add testpmd cmdline support for GTPU, it could be used to configure gtpu teid hash. The commands as below: testpmd> flow create 0 ingress pattern eth / ipv4 / udp / gtpu / \ ipv4 / end actions rss types gtpu end key_len 0 queues end / end Signed-off-by: Jeff Guo <jia.guo@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
dadf70e5c3
commit
cd8b4be013
|
@ -2274,7 +2274,7 @@ cmd_config_rss_parsed(void *parsed_result,
|
|||
rss_conf.rss_hf = 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_AH | ETH_RSS_PFCP | ETH_RSS_GTPU;
|
||||
else if (!strcmp(res->value, "eth"))
|
||||
rss_conf.rss_hf = ETH_RSS_ETH;
|
||||
else if (!strcmp(res->value, "vlan"))
|
||||
|
@ -2319,6 +2319,8 @@ cmd_config_rss_parsed(void *parsed_result,
|
|||
rss_conf.rss_hf = ETH_RSS_PFCP;
|
||||
else if (!strcmp(res->value, "pppoe"))
|
||||
rss_conf.rss_hf = ETH_RSS_PPPOE;
|
||||
else if (!strcmp(res->value, "gtpu"))
|
||||
rss_conf.rss_hf = ETH_RSS_GTPU;
|
||||
else if (!strcmp(res->value, "none"))
|
||||
rss_conf.rss_hf = 0;
|
||||
else if (!strcmp(res->value, "default"))
|
||||
|
@ -2492,7 +2494,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");
|
||||
"l2tpv3#esp#ah#pfcp#pppoe#gtpu");
|
||||
cmdline_parse_token_string_t cmd_config_rss_hash_key_value =
|
||||
TOKEN_STRING_INITIALIZER(struct cmd_config_rss_hash_key, key, NULL);
|
||||
|
||||
|
@ -2505,7 +2507,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 "
|
||||
"l2tpv3|esp|ah|pfcp|pppoe|gtpu "
|
||||
"<string of hex digits (variable length, NIC dependent)>",
|
||||
.tokens = {
|
||||
(void *)&cmd_config_rss_hash_key_port,
|
||||
|
|
|
@ -77,7 +77,8 @@ static const struct {
|
|||
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_L2TPV3 | ETH_RSS_ESP | ETH_RSS_AH | ETH_RSS_PFCP |
|
||||
ETH_RSS_GTPU},
|
||||
{ "none", 0 },
|
||||
{ "eth", ETH_RSS_ETH },
|
||||
{ "l2-src-only", ETH_RSS_L2_SRC_ONLY },
|
||||
|
@ -119,6 +120,7 @@ const struct rss_type_info rss_type_table[] = {
|
|||
{ "l2tpv3", ETH_RSS_L2TPV3 },
|
||||
{ "pfcp", ETH_RSS_PFCP },
|
||||
{ "pppoe", ETH_RSS_PPPOE },
|
||||
{ "gtpu", ETH_RSS_GTPU },
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue