get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2461/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2461,
    "url": "https://patches.dpdk.org/api/patches/2461/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421912219-1946-6-git-send-email-helin.zhang@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1421912219-1946-6-git-send-email-helin.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1421912219-1946-6-git-send-email-helin.zhang@intel.com",
    "date": "2015-01-22T07:36:59",
    "name": "[dpdk-dev,v9,5/5] app/testpmd: add commands to support hash functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "350eb0a31e1f21dfa6dee8a961bdacaf7732a276",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/?format=api",
        "name": "Zhang, Helin",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1421912219-1946-6-git-send-email-helin.zhang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2461/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2461/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 565AE5AB3;\n\tThu, 22 Jan 2015 08:37:23 +0100 (CET)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id E1D2F1288\n\tfor <dev@dpdk.org>; Thu, 22 Jan 2015 08:37:17 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga101.fm.intel.com with ESMTP; 21 Jan 2015 23:37:16 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 21 Jan 2015 23:37:16 -0800",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t0M7bDGK010316;\n\tThu, 22 Jan 2015 15:37:13 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t0M7bBXv002017; Thu, 22 Jan 2015 15:37:13 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0M7bBUX002013; \n\tThu, 22 Jan 2015 15:37:11 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.09,447,1418112000\"; d=\"scan'208\";a=\"673936204\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 22 Jan 2015 15:36:59 +0800",
        "Message-Id": "<1421912219-1946-6-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1421912219-1946-1-git-send-email-helin.zhang@intel.com>",
        "References": "<1417486760-24459-1-git-send-email-helin.zhang@intel.com>\n\t<1421912219-1946-1-git-send-email-helin.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v9 5/5] app/testpmd: add commands to support hash\n\tfunctions",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "To demonstrate the hash filter control, commands are added.\nThey are,\n- get_sym_hash_ena_per_port\n- set_sym_hash_ena_per_port\n- get_hash_global_config\n- set_hash_global_config\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n app/test-pmd/cmdline.c | 333 +++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 333 insertions(+)\n\nv6 changes:\n* Flow type strings are used to replace Packet Classification Types, to isolate\n  hardware specific things.\n\nv7 changes:\n* Removed commands of,\n  get_sym_hash_ena_per_pctype\n  set_sym_hash_ena_per_pctype\n  get_filter_swap\n  set_filter_swap\n  get_hash_function\n  set_hash_function.\n* Added new commands of,\n  get_hash_global_config\n  set_hash_global_config\n\nv8 changes:\n* Fixed the compile issue on ICC, of \"error #188: enumerated type mixed with\n  another type\".",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 4beb404..590e427 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -75,6 +75,7 @@\n #include <rte_ethdev.h>\n #include <rte_string_fns.h>\n #include <rte_devargs.h>\n+#include <rte_eth_ctrl.h>\n \n #include <cmdline_rdline.h>\n #include <cmdline_parse.h>\n@@ -735,6 +736,21 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\"flow_director_flex_payload (port_id)\"\n \t\t\t\" (l2|l3|l4) (config)\\n\"\n \t\t\t\"    Configure flex payload selection.\\n\\n\"\n+\n+\t\t\t\"get_sym_hash_ena_per_port (port_id)\\n\"\n+\t\t\t\"    get symmetric hash enable configuration per port.\\n\\n\"\n+\n+\t\t\t\"set_sym_hash_ena_per_port (port_id) (enable|disable)\\n\"\n+\t\t\t\"    set symmetric hash enable configuration per port\"\n+\t\t\t\" to enable or disable.\\n\\n\"\n+\n+\t\t\t\"get_hash_global_config (port_id)\\n\"\n+\t\t\t\"    Get the global configurations of hash filters.\\n\\n\"\n+\n+\t\t\t\"set_hash_global_config (port_id) (toeplitz|simple_xor|default)\"\n+\t\t\t\" (ip4|ip4-frag|tcp4|udp4|#sctp4|ip6|ip6-frag|tcp6|udp6|sctp6)\"\n+\t\t\t\" (enable|disable)\\n\"\n+\t\t\t\"    Set the global configurations of hash filters.\\n\\n\"\n \t\t);\n \t}\n }\n@@ -8670,6 +8686,319 @@ cmdline_parse_inst_t cmd_set_flow_director_flex_payload = {\n \t},\n };\n \n+/* *** Classification Filters Control *** */\n+/* *** Get symmetric hash enable per port *** */\n+struct cmd_get_sym_hash_ena_per_port_result {\n+\tcmdline_fixed_string_t get_sym_hash_ena_per_port;\n+\tuint8_t port_id;\n+};\n+\n+static void\n+cmd_get_sym_hash_per_port_parsed(void *parsed_result,\n+\t\t\t\t __rte_unused struct cmdline *cl,\n+\t\t\t\t __rte_unused void *data)\n+{\n+\tstruct cmd_get_sym_hash_ena_per_port_result *res = parsed_result;\n+\tstruct rte_eth_hash_filter_info info;\n+\tint ret;\n+\n+\tif (rte_eth_dev_filter_supported(res->port_id,\n+\t\t\t\tRTE_ETH_FILTER_HASH) < 0) {\n+\t\tprintf(\"RTE_ETH_FILTER_HASH not supported on port: %d\\n\",\n+\t\t\t\t\t\t\tres->port_id);\n+\t\treturn;\n+\t}\n+\n+\tmemset(&info, 0, sizeof(info));\n+\tinfo.info_type = RTE_ETH_HASH_FILTER_SYM_HASH_ENA_PER_PORT;\n+\tret = rte_eth_dev_filter_ctrl(res->port_id, RTE_ETH_FILTER_HASH,\n+\t\t\t\t\t\tRTE_ETH_FILTER_GET, &info);\n+\n+\tif (ret < 0) {\n+\t\tprintf(\"Cannot get symmetric hash enable per port \"\n+\t\t\t\t\t\"on port %u\\n\", res->port_id);\n+\t\treturn;\n+\t}\n+\n+\tprintf(\"Symmetric hash is %s on port %u\\n\", info.info.enable ?\n+\t\t\t\t\"enabled\" : \"disabled\", res->port_id);\n+}\n+\n+cmdline_parse_token_string_t cmd_get_sym_hash_ena_per_port_all =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_get_sym_hash_ena_per_port_result,\n+\t\tget_sym_hash_ena_per_port, \"get_sym_hash_ena_per_port\");\n+cmdline_parse_token_num_t cmd_get_sym_hash_ena_per_port_port_id =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_get_sym_hash_ena_per_port_result,\n+\t\tport_id, UINT8);\n+\n+cmdline_parse_inst_t cmd_get_sym_hash_ena_per_port = {\n+\t.f = cmd_get_sym_hash_per_port_parsed,\n+\t.data = NULL,\n+\t.help_str = \"get_sym_hash_ena_per_port port_id\",\n+\t.tokens = {\n+\t\t(void *)&cmd_get_sym_hash_ena_per_port_all,\n+\t\t(void *)&cmd_get_sym_hash_ena_per_port_port_id,\n+\t\tNULL,\n+\t},\n+};\n+\n+/* *** Set symmetric hash enable per port *** */\n+struct cmd_set_sym_hash_ena_per_port_result {\n+\tcmdline_fixed_string_t set_sym_hash_ena_per_port;\n+\tcmdline_fixed_string_t enable;\n+\tuint8_t port_id;\n+};\n+\n+static void\n+cmd_set_sym_hash_per_port_parsed(void *parsed_result,\n+\t\t\t\t __rte_unused struct cmdline *cl,\n+\t\t\t\t __rte_unused void *data)\n+{\n+\tstruct cmd_set_sym_hash_ena_per_port_result *res = parsed_result;\n+\tstruct rte_eth_hash_filter_info info;\n+\tint ret;\n+\n+\tif (rte_eth_dev_filter_supported(res->port_id,\n+\t\t\t\tRTE_ETH_FILTER_HASH) < 0) {\n+\t\tprintf(\"RTE_ETH_FILTER_HASH not supported on port: %d\\n\",\n+\t\t\t\t\t\t\tres->port_id);\n+\t\treturn;\n+\t}\n+\n+\tmemset(&info, 0, sizeof(info));\n+\tinfo.info_type = RTE_ETH_HASH_FILTER_SYM_HASH_ENA_PER_PORT;\n+\tif (!strcmp(res->enable, \"enable\"))\n+\t\tinfo.info.enable = 1;\n+\tret = rte_eth_dev_filter_ctrl(res->port_id, RTE_ETH_FILTER_HASH,\n+\t\t\t\t\tRTE_ETH_FILTER_SET, &info);\n+\tif (ret < 0) {\n+\t\tprintf(\"Cannot set symmetric hash enable per port on \"\n+\t\t\t\t\t\"port %u\\n\", res->port_id);\n+\t\treturn;\n+\t}\n+\tprintf(\"Symmetric hash has been set to %s on port %u\\n\",\n+\t\t\t\t\tres->enable, res->port_id);\n+}\n+\n+cmdline_parse_token_string_t cmd_set_sym_hash_ena_per_port_all =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_set_sym_hash_ena_per_port_result,\n+\t\tset_sym_hash_ena_per_port, \"set_sym_hash_ena_per_port\");\n+cmdline_parse_token_num_t cmd_set_sym_hash_ena_per_port_port_id =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_set_sym_hash_ena_per_port_result,\n+\t\tport_id, UINT8);\n+cmdline_parse_token_string_t cmd_set_sym_hash_ena_per_port_enable =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_set_sym_hash_ena_per_port_result,\n+\t\tenable, \"enable#disable\");\n+\n+cmdline_parse_inst_t cmd_set_sym_hash_ena_per_port = {\n+\t.f = cmd_set_sym_hash_per_port_parsed,\n+\t.data = NULL,\n+\t.help_str = \"set_sym_hash_ena_per_port port_id enable|disable\",\n+\t.tokens = {\n+\t\t(void *)&cmd_set_sym_hash_ena_per_port_all,\n+\t\t(void *)&cmd_set_sym_hash_ena_per_port_port_id,\n+\t\t(void *)&cmd_set_sym_hash_ena_per_port_enable,\n+\t\tNULL,\n+\t},\n+};\n+\n+/* Get global config of hash function */\n+struct cmd_get_hash_global_config_result {\n+\tcmdline_fixed_string_t get_hash_global_config;\n+\tuint8_t port_id;\n+};\n+\n+static char *\n+flowtype_to_str(enum rte_eth_flow_type ftype)\n+{\n+\tuint16_t i;\n+\tstatic struct {\n+\t\tchar str[16];\n+\t\tenum rte_eth_flow_type ftype;\n+\t} ftype_table[] = {\n+\t\t{\"ip4\", RTE_ETH_FLOW_TYPE_IPV4_OTHER},\n+\t\t{\"ip4-frag\", RTE_ETH_FLOW_TYPE_FRAG_IPV4},\n+\t\t{\"udp4\", RTE_ETH_FLOW_TYPE_UDPV4},\n+\t\t{\"tcp4\", RTE_ETH_FLOW_TYPE_TCPV4},\n+\t\t{\"sctp4\", RTE_ETH_FLOW_TYPE_SCTPV4},\n+\t\t{\"ip6\", RTE_ETH_FLOW_TYPE_IPV6_OTHER},\n+\t\t{\"ip6-frag\", RTE_ETH_FLOW_TYPE_FRAG_IPV6},\n+\t\t{\"udp6\", RTE_ETH_FLOW_TYPE_UDPV6},\n+\t\t{\"tcp6\", RTE_ETH_FLOW_TYPE_TCPV6},\n+\t\t{\"sctp6\", RTE_ETH_FLOW_TYPE_TCPV6},\n+\t};\n+\n+\tfor (i = 0; i < RTE_DIM(ftype_table); i++) {\n+\t\tif (ftype_table[i].ftype == ftype)\n+\t\t\treturn ftype_table[i].str;\n+\t}\n+\n+\treturn NULL;\n+}\n+\n+static void\n+cmd_get_hash_global_config_parsed(void *parsed_result,\n+\t\t\t\t  __rte_unused struct cmdline *cl,\n+\t\t\t\t  __rte_unused void *data)\n+{\n+\tstruct cmd_get_hash_global_config_result *res = parsed_result;\n+\tstruct rte_eth_hash_filter_info info;\n+\tuint32_t idx, offset, i;\n+\tchar *str;\n+\tint ret;\n+\n+\tif (rte_eth_dev_filter_supported(res->port_id,\n+\t\t\tRTE_ETH_FILTER_HASH) < 0) {\n+\t\tprintf(\"RTE_ETH_FILTER_HASH not supported on port %d\\n\",\n+\t\t\t\t\t\t\tres->port_id);\n+\t\treturn;\n+\t}\n+\n+\tmemset(&info, 0, sizeof(info));\n+\tinfo.info_type = RTE_ETH_HASH_FILTER_GLOBAL_CONFIG;\n+\tret = rte_eth_dev_filter_ctrl(res->port_id, RTE_ETH_FILTER_HASH,\n+\t\t\t\t\tRTE_ETH_FILTER_GET, &info);\n+\tif (ret < 0) {\n+\t\tprintf(\"Cannot get hash global configurations by port %d\\n\",\n+\t\t\t\t\t\t\tres->port_id);\n+\t\treturn;\n+\t}\n+\n+\tswitch (info.info.global_conf.hash_func) {\n+\tcase RTE_ETH_HASH_FUNCTION_TOEPLITZ:\n+\t\tprintf(\"Hash function is Toeplitz\\n\");\n+\t\tbreak;\n+\tcase RTE_ETH_HASH_FUNCTION_SIMPLE_XOR:\n+\t\tprintf(\"Hash function is Simple XOR\\n\");\n+\t\tbreak;\n+\tdefault:\n+\t\tprintf(\"Unknown hash function\\n\");\n+\t\tbreak;\n+\t}\n+\n+\tfor (i = 0; i < RTE_ETH_FLOW_TYPE_MAX; i++) {\n+\t\tidx = i / UINT32_BIT;\n+\t\toffset = i % UINT32_BIT;\n+\t\tif (!(info.info.global_conf.valid_bit_mask[idx] &\n+\t\t\t\t\t\t(1UL << offset)))\n+\t\t\tcontinue;\n+\t\tstr = flowtype_to_str((enum rte_eth_flow_type)i);\n+\t\tif (!str)\n+\t\t\tcontinue;\n+\t\tprintf(\"Symmetric hash is %s globally for flow type %s \"\n+\t\t\t\t\t\t\t\"by port %d\\n\",\n+\t\t\t((info.info.global_conf.sym_hash_enable_mask[idx] &\n+\t\t\t(1UL << offset)) ? \"enabled\" : \"disabled\"), str,\n+\t\t\t\t\t\t\tres->port_id);\n+\t}\n+}\n+\n+cmdline_parse_token_string_t cmd_get_hash_global_config_all =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_get_hash_global_config_result,\n+\t\tget_hash_global_config, \"get_hash_global_config\");\n+cmdline_parse_token_num_t cmd_get_hash_global_config_port_id =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_get_hash_global_config_result,\n+\t\tport_id, UINT8);\n+\n+cmdline_parse_inst_t cmd_get_hash_global_config = {\n+\t.f = cmd_get_hash_global_config_parsed,\n+\t.data = NULL,\n+\t.help_str = \"get_hash_global_config port_id\",\n+\t.tokens = {\n+\t\t(void *)&cmd_get_hash_global_config_all,\n+\t\t(void *)&cmd_get_hash_global_config_port_id,\n+\t\tNULL,\n+\t},\n+};\n+\n+/* Set global config of hash function */\n+struct cmd_set_hash_global_config_result {\n+\tcmdline_fixed_string_t set_hash_global_config;\n+\tuint8_t port_id;\n+\tcmdline_fixed_string_t hash_func;\n+\tcmdline_fixed_string_t flow_type;\n+\tcmdline_fixed_string_t enable;\n+};\n+\n+static void\n+cmd_set_hash_global_config_parsed(void *parsed_result,\n+\t\t\t\t  __rte_unused struct cmdline *cl,\n+\t\t\t\t  __rte_unused void *data)\n+{\n+\tstruct cmd_set_hash_global_config_result *res = parsed_result;\n+\tstruct rte_eth_hash_filter_info info;\n+\tuint32_t ftype, idx, offset;\n+\tint ret;\n+\n+\tif (rte_eth_dev_filter_supported(res->port_id,\n+\t\t\t\tRTE_ETH_FILTER_HASH) < 0) {\n+\t\tprintf(\"RTE_ETH_FILTER_HASH not supported on port %d\\n\",\n+\t\t\t\t\t\t\tres->port_id);\n+\t\treturn;\n+\t}\n+\tmemset(&info, 0, sizeof(info));\n+\tinfo.info_type = RTE_ETH_HASH_FILTER_GLOBAL_CONFIG;\n+\tif (!strcmp(res->hash_func, \"toeplitz\"))\n+\t\tinfo.info.global_conf.hash_func =\n+\t\t\tRTE_ETH_HASH_FUNCTION_TOEPLITZ;\n+\telse if (!strcmp(res->hash_func, \"simple_xor\"))\n+\t\tinfo.info.global_conf.hash_func =\n+\t\t\tRTE_ETH_HASH_FUNCTION_SIMPLE_XOR;\n+\telse if (!strcmp(res->hash_func, \"default\"))\n+\t\tinfo.info.global_conf.hash_func =\n+\t\t\tRTE_ETH_HASH_FUNCTION_DEFAULT;\n+\n+\tftype = str2flowtype(res->flow_type);\n+\tidx = ftype / (CHAR_BIT * sizeof(uint32_t));\n+\toffset = ftype % (CHAR_BIT * sizeof(uint32_t));\n+\tinfo.info.global_conf.valid_bit_mask[idx] |= (1UL << offset);\n+\tif (!strcmp(res->enable, \"enable\"))\n+\t\tinfo.info.global_conf.sym_hash_enable_mask[idx] |=\n+\t\t\t\t\t\t(1UL << offset);\n+\tret = rte_eth_dev_filter_ctrl(res->port_id, RTE_ETH_FILTER_HASH,\n+\t\t\t\t\tRTE_ETH_FILTER_SET, &info);\n+\tif (ret < 0)\n+\t\tprintf(\"Cannot set global hash configurations by port %d\\n\",\n+\t\t\t\t\t\t\tres->port_id);\n+\telse\n+\t\tprintf(\"Global hash configurations have been set \"\n+\t\t\t\"succcessfully by port %d\\n\", res->port_id);\n+}\n+\n+cmdline_parse_token_string_t cmd_set_hash_global_config_all =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_set_hash_global_config_result,\n+\t\tset_hash_global_config, \"set_hash_global_config\");\n+cmdline_parse_token_num_t cmd_set_hash_global_config_port_id =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_set_hash_global_config_result,\n+\t\tport_id, UINT8);\n+cmdline_parse_token_string_t cmd_set_hash_global_config_hash_func =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_set_hash_global_config_result,\n+\t\thash_func, \"toeplitz#simple_xor#default\");\n+cmdline_parse_token_string_t cmd_set_hash_global_config_flow_type =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_set_hash_global_config_result,\n+\t\tflow_type,\n+\t\t\"ip4#ip4-frag#tcp4#udp4#sctp4#ip6#ip6-frag#tcp6#udp6#sctp6\");\n+cmdline_parse_token_string_t cmd_set_hash_global_config_enable =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_set_hash_global_config_result,\n+\t\tenable, \"enable#disable\");\n+\n+cmdline_parse_inst_t cmd_set_hash_global_config = {\n+\t.f = cmd_set_hash_global_config_parsed,\n+\t.data = NULL,\n+\t.help_str = \"set_hash_global_config port_id \"\n+\t\t\"toeplitz|simple_xor|default \"\n+\t\t\"ip4|ip4-frag|tcp4|udp4|#sctp4|ip6|ip6-frag|tcp6|udp6|sctp6 \"\n+\t\t\"enable|disable\",\n+\t.tokens = {\n+\t\t(void *)&cmd_set_hash_global_config_all,\n+\t\t(void *)&cmd_set_hash_global_config_port_id,\n+\t\t(void *)&cmd_set_hash_global_config_hash_func,\n+\t\t(void *)&cmd_set_hash_global_config_flow_type,\n+\t\t(void *)&cmd_set_hash_global_config_enable,\n+\t\tNULL,\n+\t},\n+};\n+\n /* ******************************************************************************** */\n \n /* list of instructions */\n@@ -8807,6 +9136,10 @@ cmdline_parse_ctx_t main_ctx[] = {\n \t(cmdline_parse_inst_t *)&cmd_flush_flow_director,\n \t(cmdline_parse_inst_t *)&cmd_set_flow_director_flex_mask,\n \t(cmdline_parse_inst_t *)&cmd_set_flow_director_flex_payload,\n+\t(cmdline_parse_inst_t *)&cmd_get_sym_hash_ena_per_port,\n+\t(cmdline_parse_inst_t *)&cmd_set_sym_hash_ena_per_port,\n+\t(cmdline_parse_inst_t *)&cmd_get_hash_global_config,\n+\t(cmdline_parse_inst_t *)&cmd_set_hash_global_config,\n \tNULL,\n };\n \n",
    "prefixes": [
        "dpdk-dev",
        "v9",
        "5/5"
    ]
}