Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/79904/?format=api
https://patches.dpdk.org/api/patches/79904/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201007153055.28820-3-ophirmu@nvidia.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": "<20201007153055.28820-3-ophirmu@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201007153055.28820-3-ophirmu@nvidia.com", "date": "2020-10-07T15:30:54", "name": "[v6,2/3] app/testpmd: enable configuring GENEVE port", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b67e193def7ed460cd7e85f4a06c653c9aee3fb3", "submitter": { "id": 1908, "url": "https://patches.dpdk.org/api/people/1908/?format=api", "name": "Ophir Munk", "email": "ophirmu@nvidia.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201007153055.28820-3-ophirmu@nvidia.com/mbox/", "series": [ { "id": 12757, "url": "https://patches.dpdk.org/api/series/12757/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12757", "date": "2020-10-07T15:30:53", "name": "Add GENEVE protocol parsing to testpmd", "version": 6, "mbox": "https://patches.dpdk.org/series/12757/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/79904/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/79904/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 AE252A04BA;\n\tWed, 7 Oct 2020 17:31:22 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 356441BD10;\n\tWed, 7 Oct 2020 17:31:09 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 934081BCF5\n for <dev@dpdk.org>; Wed, 7 Oct 2020 17:31:04 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n ophirmu@nvidia.com) with SMTP; 7 Oct 2020 18:30:58 +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 097FUwBp008453;\n Wed, 7 Oct 2020 18:30:58 +0300" ], "From": "Ophir Munk <ophirmu@nvidia.com>", "To": "dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,\n Olivier Matz <olivier.matz@6wind.com>,\n Wenzhuo Lu <wenzhuo.lu@intel.com>, Jingjing Wu <jingjing.wu@intel.com>,\n Bernard Iremonger <bernard.iremonger@intel.com>", "Cc": "Ophir Munk <ophirmu@mellanox.com>", "Date": "Wed, 7 Oct 2020 15:30:54 +0000", "Message-Id": "<20201007153055.28820-3-ophirmu@nvidia.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20201007153055.28820-1-ophirmu@nvidia.com>", "References": "<20200918141735.18488-2-ophirmu@nvidia.com>\n <20201007153055.28820-1-ophirmu@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v6 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 1ead595..dcc9343 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= |\"\n \t \" --rxfreet= | --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@@ -202,6 +202,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@@ -671,6 +672,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@@ -1311,6 +1313,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": [ "v6", "2/3" ] }{ "id": 79904, "url": "