Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77735/?format=api
http://patches.dpdk.org/api/patches/77735/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200915131717.18252-3-ophirmu@nvidia.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": "<20200915131717.18252-3-ophirmu@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200915131717.18252-3-ophirmu@nvidia.com", "date": "2020-09-15T13:17:16", "name": "[v4,2/3] app/testpmd: enable configuring GENEVE port", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cf8ebc0a84d2e1f17e133d1b56cf994fef18cf21", "submitter": { "id": 1908, "url": "http://patches.dpdk.org/api/people/1908/?format=api", "name": "Ophir Munk", "email": "ophirmu@nvidia.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/20200915131717.18252-3-ophirmu@nvidia.com/mbox/", "series": [ { "id": 12235, "url": "http://patches.dpdk.org/api/series/12235/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12235", "date": "2020-09-15T13:17:17", "name": "Add GENEVE protocol parsing to testpmd", "version": 4, "mbox": "http://patches.dpdk.org/series/12235/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77735/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77735/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2EAE8A04C7;\n\tTue, 15 Sep 2020 15:17:53 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 092741C0DB;\n\tTue, 15 Sep 2020 15:17:29 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 060711BF7F\n for <dev@dpdk.org>; Tue, 15 Sep 2020 15:17:22 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n ophirmu@nvidia.com) with SMTP; 15 Sep 2020 16:17:21 +0300", "from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 08FDHL46017444;\n Tue, 15 Sep 2020 16:17:21 +0300" ], "From": "Ophir Munk <ophirmu@nvidia.com>", "To": "dev@dpdk.org, Wenzhuo Lu <wenzhuo.lu@intel.com>,\n Beilei Xing <beilei.xing@intel.com>,\n Bernard Iremonger <bernard.iremonger@intel.com>,\n Ferruh Yigit <ferruh.yigit@intel.com>", "Cc": "Ophir Munk <ophirmu@nvidia.com>, Ophir Munk <ophirmu@mellanox.com>", "Date": "Tue, 15 Sep 2020 13:17:16 +0000", "Message-Id": "<20200915131717.18252-3-ophirmu@nvidia.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20200915131717.18252-1-ophirmu@nvidia.com>", "References": "<20200915125319.16568-2-ophirmu@nvidia.com>\n <20200915131717.18252-1-ophirmu@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v4 2/3] app/testpmd: enable configuring GENEVE\n\tport", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Ophir Munk <ophirmu@mellanox.com>\n\nIANA has assigned port 6081 as the fixed well-known destination port for\nGENEVE. Nevertheless draft-ietf-nvo3-geneve-09 recommends that\nimplementations make this configurable. This commit enables specifying\nany positive UDP destination port number for GENEVE.\n\nSigned-off-by: Ophir Munk <ophirmu@mellanox.com>\n---\n app/test-pmd/parameters.c | 14 ++++++++++++--\n doc/guides/testpmd_app_ug/run_app.rst | 5 +++++\n 2 files changed, 17 insertions(+), 2 deletions(-)", "diff": "diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c\nindex 7845153..25e2935 100644\n--- a/app/test-pmd/parameters.c\n+++ b/app/test-pmd/parameters.c\n@@ -70,8 +70,8 @@ usage(char* progname)\n \t \"--rxpt= | --rxht= | --rxwt= | --rxfreet= | \"\n \t \"--txpt= | --txht= | --txwt= | --txfreet= | \"\n \t \"--txrst= | --tx-offloads= | | --rx-offloads= | \"\n-\t \"--vxlan-gpe-port= | --record-core-cycles | \"\n-\t \"--record-burst-stats]\\n\",\n+\t \"--vxlan-gpe-port= | --geneve-port= | \"\n+\t \"--record-core-cycles | --record-burst-stats]\\n\",\n \t progname);\n #ifdef RTE_LIBRTE_CMDLINE\n \tprintf(\" --interactive: run in interactive mode.\\n\");\n@@ -200,6 +200,7 @@ usage(char* progname)\n \tprintf(\" --rx-offloads=0xXXXXXXXX: hexadecimal bitmask of RX queue offloads\\n\");\n \tprintf(\" --hot-plug: enable hot plug for device.\\n\");\n \tprintf(\" --vxlan-gpe-port=N: UPD port of tunnel VXLAN-GPE\\n\");\n+\tprintf(\" --geneve-port=N: UPD port of tunnel GENEVE\\n\");\n \tprintf(\" --mlockall: lock all memory\\n\");\n \tprintf(\" --no-mlockall: do not lock all memory\\n\");\n \tprintf(\" --mp-alloc <native|anon|xmem|xmemhuge>: mempool allocation method.\\n\"\n@@ -667,6 +668,7 @@ launch_args_parse(int argc, char** argv)\n \t\t{ \"rx-offloads\",\t\t1, 0, 0 },\n \t\t{ \"hot-plug\",\t\t\t0, 0, 0 },\n \t\t{ \"vxlan-gpe-port\",\t\t1, 0, 0 },\n+\t\t{ \"geneve-port\",\t\t1, 0, 0 },\n \t\t{ \"mlockall\",\t\t\t0, 0, 0 },\n \t\t{ \"no-mlockall\",\t\t0, 0, 0 },\n \t\t{ \"mp-alloc\",\t\t\t1, 0, 0 },\n@@ -1303,6 +1305,14 @@ launch_args_parse(int argc, char** argv)\n \t\t\t\t\trte_exit(EXIT_FAILURE,\n \t\t\t\t\t\t \"vxlan-gpe-port must be >= 0\\n\");\n \t\t\t}\n+\t\t\tif (!strcmp(lgopts[opt_idx].name, \"geneve-port\")) {\n+\t\t\t\tn = atoi(optarg);\n+\t\t\t\tif (n >= 0)\n+\t\t\t\t\tgeneve_udp_port = (uint16_t)n;\n+\t\t\t\telse\n+\t\t\t\t\trte_exit(EXIT_FAILURE,\n+\t\t\t\t\t\t \"geneve-port must be >= 0\\n\");\n+\t\t\t}\n \t\t\tif (!strcmp(lgopts[opt_idx].name, \"print-event\"))\n \t\t\t\tif (parse_event_printing_config(optarg, 1)) {\n \t\t\t\t\trte_exit(EXIT_FAILURE,\ndiff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst\nindex e2539f6..dbd22f1 100644\n--- a/doc/guides/testpmd_app_ug/run_app.rst\n+++ b/doc/guides/testpmd_app_ug/run_app.rst\n@@ -426,6 +426,11 @@ The command line options are:\n Set the UDP port number of tunnel VXLAN-GPE to N.\n The default value is 4790.\n \n+* ``--geneve-port=N``\n+\n+ Set the UDP port number of tunnel GENEVE to N.\n+ The default value is 6081.\n+\n * ``--mlockall``\n \n Enable locking all memory.\n", "prefixes": [ "v4", "2/3" ] }{ "id": 77735, "url": "