Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/60347/?format=api
http://patches.dpdk.org/api/patches/60347/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1569940564-311988-4-git-send-email-simei.su@intel.com/", "project": { "id": 1, "url": "http://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": "<1569940564-311988-4-git-send-email-simei.su@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1569940564-311988-4-git-send-email-simei.su@intel.com", "date": "2019-10-01T14:36:04", "name": "[v8,3/3] app/testpmd: add RSS offload types extending support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "26c4114e6d1a1bf7f7f36f86c1109b02f670e4f2", "submitter": { "id": 1298, "url": "http://patches.dpdk.org/api/people/1298/?format=api", "name": "Simei Su", "email": "simei.su@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1569940564-311988-4-git-send-email-simei.su@intel.com/mbox/", "series": [ { "id": 6651, "url": "http://patches.dpdk.org/api/series/6651/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6651", "date": "2019-10-01T14:36:01", "name": "extend RSS offload types", "version": 8, "mbox": "http://patches.dpdk.org/series/6651/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/60347/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/60347/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BC8EC1BE80;\n\tTue, 1 Oct 2019 16:36:30 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 9D54A1B948\n\tfor <dev@dpdk.org>; Tue, 1 Oct 2019 16:36:28 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Oct 2019 07:36:28 -0700", "from npg-dpdk-cvl-simeisu-118d193.sh.intel.com ([10.67.110.183])\n\tby fmsmga002.fm.intel.com with ESMTP; 01 Oct 2019 07:36:27 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.64,571,1559545200\"; d=\"scan'208\";a=\"221019893\"", "From": "Simei Su <simei.su@intel.com>", "To": "qi.z.zhang@intel.com,\n\txiaolong.ye@intel.com,\n\tferruh.yigit@intel.com", "Cc": "dev@dpdk.org,\n\tsimei.su@intel.com", "Date": "Tue, 1 Oct 2019 22:36:04 +0800", "Message-Id": "<1569940564-311988-4-git-send-email-simei.su@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1569940564-311988-1-git-send-email-simei.su@intel.com>", "References": "<1569740956-69634-1-git-send-email-simei.su@intel.com>\n\t<1569940564-311988-1-git-send-email-simei.su@intel.com>", "Subject": "[dpdk-dev] [PATCH v8 3/3] app/testpmd: add RSS offload types\n\textending support", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch adds cmdline support for extended rss types configuration.\n\nSigned-off-by: Simei Su <simei.su@intel.com>\nReviewed-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n app/test-pmd/cmdline.c | 18 +++++++++++++++---\n app/test-pmd/config.c | 4 ++++\n 2 files changed, 19 insertions(+), 3 deletions(-)", "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex def471d..f5c0cde 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -2189,7 +2189,9 @@ struct cmd_config_rss {\n \tif (!strcmp(res->value, \"all\"))\n \t\trss_conf.rss_hf = ETH_RSS_IP | ETH_RSS_TCP |\n \t\t\t\tETH_RSS_UDP | ETH_RSS_SCTP |\n-\t\t\t\t\tETH_RSS_L2_PAYLOAD;\n+\t\t\t\t\tETH_RSS_L2_PAYLOAD |\n+\t\t\t\tETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY |\n+\t\t\t\tETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY;\n \telse if (!strcmp(res->value, \"ip\"))\n \t\trss_conf.rss_hf = ETH_RSS_IP;\n \telse if (!strcmp(res->value, \"udp\"))\n@@ -2208,6 +2210,14 @@ struct cmd_config_rss {\n \t\trss_conf.rss_hf = ETH_RSS_GENEVE;\n \telse if (!strcmp(res->value, \"nvgre\"))\n \t\trss_conf.rss_hf = ETH_RSS_NVGRE;\n+\telse if (!strcmp(res->value, \"l3-src-only\"))\n+\t\trss_conf.rss_hf = ETH_RSS_L3_SRC_ONLY;\n+\telse if (!strcmp(res->value, \"l3-dst-only\"))\n+\t\trss_conf.rss_hf = ETH_RSS_L3_DST_ONLY;\n+\telse if (!strcmp(res->value, \"l4-src-only\"))\n+\t\trss_conf.rss_hf = ETH_RSS_L4_SRC_ONLY;\n+\telse if (!strcmp(res->value, \"l4-dst-only\"))\n+\t\trss_conf.rss_hf = ETH_RSS_L4_DST_ONLY;\n \telse if (!strcmp(res->value, \"none\"))\n \t\trss_conf.rss_hf = 0;\n \telse if (!strcmp(res->value, \"default\"))\n@@ -2375,7 +2385,8 @@ struct cmd_config_rss_hash_key {\n \t\t\t\t \"ipv4#ipv4-frag#ipv4-tcp#ipv4-udp#ipv4-sctp#\"\n \t\t\t\t \"ipv4-other#ipv6#ipv6-frag#ipv6-tcp#ipv6-udp#\"\n \t\t\t\t \"ipv6-sctp#ipv6-other#l2-payload#ipv6-ex#\"\n-\t\t\t\t \"ipv6-tcp-ex#ipv6-udp-ex\");\n+\t\t\t\t \"ipv6-tcp-ex#ipv6-udp-ex#\"\n+\t\t\t\t \"l3-src-only#l3-dst-only#l4-src-only#l4-dst-only\");\n cmdline_parse_token_string_t cmd_config_rss_hash_key_value =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_rss_hash_key, key, NULL);\n \n@@ -2385,7 +2396,8 @@ struct cmd_config_rss_hash_key {\n \t.help_str = \"port config <port_id> rss-hash-key \"\n \t\t\"ipv4|ipv4-frag|ipv4-tcp|ipv4-udp|ipv4-sctp|ipv4-other|\"\n \t\t\"ipv6|ipv6-frag|ipv6-tcp|ipv6-udp|ipv6-sctp|ipv6-other|\"\n-\t\t\"l2-payload|ipv6-ex|ipv6-tcp-ex|ipv6-udp-ex \"\n+\t\t\"l2-payload|ipv6-ex|ipv6-tcp-ex|ipv6-udp-ex|\"\n+\t\t\"l3-src-only|l3-dst-only|l4-src-only|l4-dst-only \"\n \t\t\"<string of hex digits (variable length, NIC dependent)>\",\n \t.tokens = {\n \t\t(void *)&cmd_config_rss_hash_key_port,\ndiff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex a3b6cbd..5022d42 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -103,6 +103,10 @@\n \t{ \"tcp\", ETH_RSS_TCP },\n \t{ \"sctp\", ETH_RSS_SCTP },\n \t{ \"tunnel\", ETH_RSS_TUNNEL },\n+\t{ \"l3-src-only\", ETH_RSS_L3_SRC_ONLY },\n+\t{ \"l3-dst-only\", ETH_RSS_L3_DST_ONLY },\n+\t{ \"l4-src-only\", ETH_RSS_L4_SRC_ONLY },\n+\t{ \"l4-dst-only\", ETH_RSS_L4_DST_ONLY },\n \t{ NULL, 0 },\n };\n \n", "prefixes": [ "v8", "3/3" ] }{ "id": 60347, "url": "