]> git.droids-corp.org - dpdk.git/commitdiff
app/testpmd: unify name of L2 payload offload
authorHuisong Li <lihuisong@huawei.com>
Wed, 29 Jun 2022 08:34:45 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 29 Jun 2022 19:40:49 +0000 (21:40 +0200)
Currently, the "port config all rss xx" command uses 'ether' name to match
and to set 'RTE_ETH_RSS_L2_PAYLOAD' offload. However, others RSS command,
such as, "port config <port_id> rss-hash-key" and "show port <port_id>
rss-hash key", use 'l2-payload' to represent this offload. So this patch
unifies the name of 'RTE_ETH_RSS_L2_PAYLOAD' offload.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
app/test-pmd/cmdline.c
doc/guides/rel_notes/release_22_07.rst
doc/guides/testpmd_app_ug/testpmd_funcs.rst

index ded7dfe65639d83a94a28a252b62842fa7a8fd2c..0123f4a4e579e8274186492fa535762fe20198bd 100644 (file)
@@ -694,7 +694,7 @@ static void cmd_help_long_parsed(void *parsed_result,
                        "receive buffers available.\n\n"
 
                        "port config all rss (all|default|ip|tcp|udp|sctp|"
-                       "ether|port|vxlan|geneve|nvgre|vxlan-gpe|ecpri|mpls|ipv4-chksum|l2tpv2|"
+                       "l2-payload|port|vxlan|geneve|nvgre|vxlan-gpe|ecpri|mpls|ipv4-chksum|l2tpv2|"
                        "none|level-default|level-outer|level-inner|<flowtype_id>)\n"
                        "    Set the RSS mode.\n\n"
 
@@ -2080,7 +2080,7 @@ cmd_config_rss_parsed(void *parsed_result,
                rss_conf.rss_hf = RTE_ETH_RSS_TCP;
        else if (!strcmp(res->value, "sctp"))
                rss_conf.rss_hf = RTE_ETH_RSS_SCTP;
-       else if (!strcmp(res->value, "ether"))
+       else if (!strcmp(res->value, "l2_payload"))
                rss_conf.rss_hf = RTE_ETH_RSS_L2_PAYLOAD;
        else if (!strcmp(res->value, "port"))
                rss_conf.rss_hf = RTE_ETH_RSS_PORT;
@@ -2203,7 +2203,7 @@ static cmdline_parse_inst_t cmd_config_rss = {
        .f = cmd_config_rss_parsed,
        .data = NULL,
        .help_str = "port config all rss "
-               "all|default|eth|vlan|ip|tcp|udp|sctp|ether|port|vxlan|geneve|"
+               "all|default|eth|vlan|ip|tcp|udp|sctp|l2-payload|port|vxlan|geneve|"
                "nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|ipv4-chksum|l2tpv2|"
                "none|level-default|level-outer|level-inner|<flowtype_id>",
        .tokens = {
index 63658003131620f92524c0e165f81f41ba94f536..b40d6f9d840de41681166abd3676461a850e3b43 100644 (file)
@@ -261,6 +261,11 @@ New Features
   Merged l3fwd-acl code into l3fwd as l3fwd-acl contains duplicate
   and common functions to l3fwd.
 
+* **Renamed L2 payload RSS type in testpmd.**
+
+  Renamed RSS type ``ether`` to ``l2-payload`` for ``port config all rss``
+  command.
+
 
 Removed Items
 -------------
index f716ea27978829da84f1ace053c10b53cdc44273..9a79ffd03be20611b83a2cf8844e587d6e276159 100644 (file)
@@ -2144,7 +2144,7 @@ port config - RSS
 
 Set the RSS (Receive Side Scaling) mode on or off::
 
-   testpmd> port config all rss (all|default|eth|vlan|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|l2tpv2|none)
+   testpmd> port config all rss (all|default|eth|vlan|ip|tcp|udp|sctp|l2-payload|port|vxlan|geneve|nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|l2tpv2|none)
 
 RSS is on by default.