Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/25860/?format=api
http://patches.dpdk.org/api/patches/25860/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/14badd6d6cb1db131832f3e406ed86e34c7938e9.1498658407.git.vasilyf@mellanox.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": "<14badd6d6cb1db131832f3e406ed86e34c7938e9.1498658407.git.vasilyf@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/14badd6d6cb1db131832f3e406ed86e34c7938e9.1498658407.git.vasilyf@mellanox.com", "date": "2017-06-28T14:03:57", "name": "[dpdk-dev,v5,4/4] app/testpmd: add isolated mode parameter", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "8c40a0ad78691efce4eacdc6273045b3d07f13bd", "submitter": { "id": 615, "url": "http://patches.dpdk.org/api/people/615/?format=api", "name": "Vasily Philipov", "email": "vasilyf@mellanox.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/14badd6d6cb1db131832f3e406ed86e34c7938e9.1498658407.git.vasilyf@mellanox.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/25860/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/25860/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 B36F256A1;\n\tWed, 28 Jun 2017 16:04:16 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 4FA262C13\n\tfor <dev@dpdk.org>; Wed, 28 Jun 2017 16:04:08 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tvasilyf@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 28 Jun 2017 17:04:04 +0300", "from hpchead.mtr.labs.mlnx. (hpchead.mtr.labs.mlnx [10.209.44.59])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v5SE44Yn019008;\n\tWed, 28 Jun 2017 17:04:04 +0300", "from hpchead.mtr.labs.mlnx. (localhost.localdomain [127.0.0.1])\n\tby hpchead.mtr.labs.mlnx. (8.14.7/8.14.7) with ESMTP id\n\tv5SE44PH028887; Wed, 28 Jun 2017 17:04:04 +0300", "(from vasilyf@localhost)\n\tby hpchead.mtr.labs.mlnx. (8.14.7/8.14.7/Submit) id v5SE444j028886;\n\tWed, 28 Jun 2017 17:04:04 +0300" ], "From": "Vasily Philipov <vasilyf@mellanox.com>", "To": "dev@dpdk.org", "Cc": "Vasily Philipov <vasilyf@mellanox.com>,\n\tAdrien Mazarguil <adrien.mazarguil@6wind.com>,\n\tNelio Laranjeiro <nelio.laranjeiro@6wind.com>", "Date": "Wed, 28 Jun 2017 17:03:57 +0300", "Message-Id": "<14badd6d6cb1db131832f3e406ed86e34c7938e9.1498658407.git.vasilyf@mellanox.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": [ "<188fdb13f584502b2099cd7ecdbc6dd8e0288ecb.1498658406.git.vasilyf@mellanox.com>", "<0dca86aa1372d6ff09d0aff01d522c580e0e24ab.1495717153.git.vasilyf@mellanox.com>" ], "References": [ "<188fdb13f584502b2099cd7ecdbc6dd8e0288ecb.1498658406.git.vasilyf@mellanox.com>", "<0dca86aa1372d6ff09d0aff01d522c580e0e24ab.1495717153.git.vasilyf@mellanox.com>" ], "Subject": "[dpdk-dev] [PATCH v5 4/4] app/testpmd: add isolated mode parameter", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "In case if --isolated-mode parameter was added to the command line\nthe rte flow isolate action will be applied on each port before\nthe device configuring.\n\nSigned-off-by: Vasily Philipov <vasilyf@mellanox.com>\n---\n app/test-pmd/parameters.c | 3 +++\n app/test-pmd/testpmd.c | 14 ++++++++++++++\n app/test-pmd/testpmd.h | 1 +\n 3 files changed, 18 insertions(+)", "diff": "diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c\nindex fbe6284..e313871 100644\n--- a/app/test-pmd/parameters.c\n+++ b/app/test-pmd/parameters.c\n@@ -623,6 +623,7 @@\n \t\t{ \"tx-queue-stats-mapping\",\t1, 0, 0 },\n \t\t{ \"rx-queue-stats-mapping\",\t1, 0, 0 },\n \t\t{ \"no-flush-rx\",\t0, 0, 0 },\n+\t\t{ \"isolated-mode\",\t 0, 0, 0 },\n \t\t{ \"txpkts\",\t\t\t1, 0, 0 },\n \t\t{ \"disable-link-check\",\t\t0, 0, 0 },\n \t\t{ \"no-lsc-interrupt\",\t\t0, 0, 0 },\n@@ -1081,6 +1082,8 @@\n \t\t\t\tlsc_interrupt = 0;\n \t\t\tif (!strcmp(lgopts[opt_idx].name, \"no-rmv-interrupt\"))\n \t\t\t\trmv_interrupt = 0;\n+\t\t\tif (!strcmp(lgopts[opt_idx].name, \"isolated-mode\"))\n+\t\t\t\tisolated_mode = 1;\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/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex d1041af..610e675 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -267,6 +267,11 @@ struct fwd_engine * fwd_engines[] = {\n uint8_t no_flush_rx = 0; /* flush by default */\n \n /*\n+ * Flow API isolated mode.\n+ */\n+uint8_t isolated_mode;\n+\n+/*\n * Avoids to check link status when starting/stopping a port.\n */\n uint8_t no_link_check = 0; /* check by default */\n@@ -1422,6 +1427,15 @@ static void eth_event_callback(uint8_t port_id,\n \t\tif (port->need_reconfig > 0) {\n \t\t\tport->need_reconfig = 0;\n \n+\t\t\tif (isolated_mode) {\n+\t\t\t\tint ret = port_flow_isolate(pi, 1);\n+\t\t\t\tif (ret) {\n+\t\t\t\t\tprintf(\"Failed to apply isolated\"\n+\t\t\t\t\t \" mode on port %d\\n\", pi);\n+\t\t\t\t\treturn -1;\n+\t\t\t\t}\n+\t\t\t}\n+\n \t\t\tprintf(\"Configuring Port %d (socket %u)\\n\", pi,\n \t\t\t\t\tport->socket_id);\n \t\t\t/* configure port */\ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex e6c43ba..dbe9898 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -303,6 +303,7 @@ struct queue_stats_mappings {\n extern uint8_t numa_support; /**< set by \"--numa\" parameter */\n extern uint16_t port_topology; /**< set by \"--port-topology\" parameter */\n extern uint8_t no_flush_rx; /**<set by \"--no-flush-rx\" parameter */\n+extern uint8_t isolated_mode; /**<set by \"--isolated-mode */\n extern uint8_t mp_anon; /**< set by \"--mp-anon\" parameter */\n extern uint8_t no_link_check; /**<set by \"--disable-link-check\" parameter */\n extern volatile int test_done; /* stop packet forwarding when set to 1. */\n", "prefixes": [ "dpdk-dev", "v5", "4/4" ] }{ "id": 25860, "url": "