get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76161,
    "url": "http://patches.dpdk.org/api/patches/76161/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200830111544.4190-12-wisamm@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": "<20200830111544.4190-12-wisamm@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200830111544.4190-12-wisamm@mellanox.com",
    "date": "2020-08-30T11:15:42",
    "name": "[11/13] app/flow-perf: add set port mask to options",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c6e04c23c9a95f1ff4348ac848098580a0d643d7",
    "submitter": {
        "id": 938,
        "url": "http://patches.dpdk.org/api/people/938/?format=api",
        "name": "Wisam Jaddo",
        "email": "wisamm@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/20200830111544.4190-12-wisamm@mellanox.com/mbox/",
    "series": [
        {
            "id": 11848,
            "url": "http://patches.dpdk.org/api/series/11848/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11848",
            "date": "2020-08-30T11:15:31",
            "name": "app/flow-perf: add support for new items/actions",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/11848/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76161/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76161/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 3F6AEA04AB;\n\tSun, 30 Aug 2020 13:23:16 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F121B1C133;\n\tSun, 30 Aug 2020 13:16:40 +0200 (CEST)",
            "from EUR02-AM5-obe.outbound.protection.outlook.com\n (mail-eopbgr00068.outbound.protection.outlook.com [40.107.0.68])\n by dpdk.org (Postfix) with ESMTP id 11FBB1C0D7\n for <dev@dpdk.org>; Sun, 30 Aug 2020 13:16:35 +0200 (CEST)",
            "from AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18)\n by AM0PR0502MB3762.eurprd05.prod.outlook.com (2603:10a6:208:1b::31)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.21; Sun, 30 Aug\n 2020 11:16:34 +0000",
            "from AM0PR05MB6610.eurprd05.prod.outlook.com\n ([fe80::4c8a:9848:2e2a:3598]) by AM0PR05MB6610.eurprd05.prod.outlook.com\n ([fe80::4c8a:9848:2e2a:3598%6]) with mapi id 15.20.3326.025; Sun, 30 Aug 2020\n 11:16:34 +0000",
            "from mellanox.com (37.142.13.130) by\n AM4PR05CA0008.eurprd05.prod.outlook.com (2603:10a6:205::21) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.3326.19 via Frontend Transport; Sun, 30 Aug 2020 11:16:32 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=YMvx5cOxc9TvpB70b/bulL77cNlhn1QtDNnB39KimqRYtjKpEfG3aTrp6wDupRyXO6nWJ5JqrCn0aprPx4szu3bPlMGqKo1GBNoI4/Ea+QiRjqHGvEZaJghUkyP75ZVbf0/XE74zVG4gCb3+6ofVw35wKzOt3ncJJMB5OByY6FT8xFl2QEV0mg4LUHSUAW988TEgMKt9bKHsu7gEMkKogDGC7xk6WzCO1LF7/gAgO4tE/0sXwPYKgmMpEJFqkpuvl9eUDuO6FtzrOUI1axepOqQ80EkNrryZOiRBoaobuwAGtvdn+ITx+9+tkNU7fzWgOL1Gdh3Y0GCVWvEvuzkJmg==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=9c8iYYG3num3/9IWoj/YIAVnCENKdkQwGt170CBNEjo=;\n b=VK8d82cjAvbaR6ipkUmi2SWgadUEgyqWHH5ZzxKgvkYZPtvAx52H/DPX/1J/rl7K5mmlv8JoctjrfjVR+ZgS7CVY3F7F/Uo0tgr+/lLHBkMwE5SyxQM0WIVwHRf7xzUWZSbqxuo5rBLhbBxpNteyv/s54h8UAV60uN5VGFXixM+4iIBVJBYSHwP/+TkAgwdCyR/AS5HdfA+cVU1bJWbsEC3Hv38EWuxVvOoC2pT1zkLYLqS1zsfg3385asUA2GP4SIDEjqG8qM7THNztqGOOlIS/37TDNhSrTlHsLv3E3nrFnwNfU0YnS8j8dketjUUosA2gnHKVoNoxVFgrPd0PIA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com;\n dkim=pass header.d=mellanox.com; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=9c8iYYG3num3/9IWoj/YIAVnCENKdkQwGt170CBNEjo=;\n b=cVjdokVmLGuQPnIjKi3wC2w0Z/d6LcJczSoeYLHzF0ouo7R/9UuiPQnDJJXi959a+Lmcj6dMW/CIJ9G6d+tfNjX/0gvfH3lxOvARxrYz787aQzVI+e+FiOcHBiKbhQX3PmIM681enbbHyVFgQVm3YHgIHm7ROcIxErUsJ/UeLhI=",
        "Authentication-Results": "dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com;",
        "From": "Wisam Jaddo <wisamm@mellanox.com>",
        "To": "dev@dpdk.org, thomas@monjalon.net, asafp@mellanox.com,\n akozyrev@nvidia.com,\n akozyrev@mellanox.com, arybchenko@solarflare.com, jackmin@mellanox.com",
        "Date": "Sun, 30 Aug 2020 11:15:42 +0000",
        "Message-Id": "<20200830111544.4190-12-wisamm@mellanox.com>",
        "X-Mailer": [
            "git-send-email 2.17.1",
            "git-send-email 2.17.1"
        ],
        "In-Reply-To": "<20200830111544.4190-1-wisamm@mellanox.com>",
        "References": "<20200830111544.4190-1-wisamm@mellanox.com>",
        "Content-Type": "text/plain",
        "X-ClientProxiedBy": "AM4PR05CA0008.eurprd05.prod.outlook.com (2603:10a6:205::21)\n To AM0PR05MB6610.eurprd05.prod.outlook.com\n (2603:10a6:208:12f::18)",
        "MIME-Version": "1.0",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "X-Originating-IP": "[37.142.13.130]",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "X-MS-Office365-Filtering-Correlation-Id": "2151c8df-c857-4a7d-40c6-08d84cd62727",
        "X-MS-TrafficTypeDiagnostic": "AM0PR0502MB3762:",
        "X-LD-Processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-Microsoft-Antispam-PRVS": "\n <AM0PR0502MB376241CCA444BDB72810E51BA9500@AM0PR0502MB3762.eurprd05.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:2201;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n KJG7p3+EC436IUtXDJR+KkdY6t85MVknrMGsL3QRG9Nq40xJVzYrQ0Xsoec32drY8lu66YL9zUKjJBYIlIbNVgsQFmSvUAxm0PvSCTDJIRO/HDRe3F+ESpJ9ZZwQIq2n24fBtXxVPbs8kKy2E3S0F9dzk1Bsve6yQer2OWbp5gdv+fKCQF1jtXiqzRPWVtMPrAGBWprnYpLECof/CISresu/1nwhQtN1lcu3GSchNkvieAA9d5ZRvvubzE29OFZgoY0wJ7kb8gzV6Ka2UNyMklMm3ulevqRsBY/O2zggJw8zV5DyBsznJ+C9UY0v1s4y",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:AM0PR05MB6610.eurprd05.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(4636009)(366004)(396003)(136003)(39860400002)(376002)(346002)(478600001)(316002)(5660300002)(8886007)(2906002)(6636002)(86362001)(36756003)(6666004)(1076003)(55016002)(8936002)(26005)(2616005)(7696005)(66946007)(66556008)(52116002)(83380400001)(16526019)(8676002)(186003)(956004)(66476007);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData": "\n MYOwj/x4ImBRnWItDEo+Ig4YJFl8GK3qAFqT8ilrezGn7uYHMUqdJF3PJkcGR0Ry3sOtPJytpF3fE0XTSQh4tOnAOntWN2aKJMbnvcZJPZjcbnadBJBh5ID6bEHopkJuEw4MSDHJxFBYUY4X93j6UNCyclxxaYkOiTeywjS/B+Y2GBg6oZfavKJvDZjhF9HjzK5/8ysa97QJaKoVSlI8RAC4zhwhKTsS+/dqxYKoJbW7ZLpFihUJxXphQonxS2/G7Z9IeEf0iM6lNcqHKeFtKiaAIZYervt/VtnewIk+nnubPm6Tnq54fidWyASAU1HfTDCORmqEEs3E7Mjqi/nlyVYmw+gnUpfkhmPA9y2j7D66sjYMrNW+31XJrVz40atBAjQdSDqBCeHyOfZCKA7dJoc/mKAYNMz5QMoq7dg1yg74+ZfLALuUl89uhP1khUZYb8FVBPbG01AkdoubrkcVevuGmzNzEopR/6Nk7p4s8deXqpdH4or9ItWlzGuVv6eTeIpTR6sjPBhURKONzdSFZVP/NbkA1gGh/3x0vuhCdYN4U4SG5hCPwb7OrTh0Vg6WNSPpnr3UlrxYpyvxMQ9KXMpAp6IC0IvPjmzvCbVEgqHV7/WoYfXkwjYkslqxrEdmwle2R1qC6Vl9zuCMAFqvMw==",
        "X-OriginatorOrg": "Mellanox.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 2151c8df-c857-4a7d-40c6-08d84cd62727",
        "X-MS-Exchange-CrossTenant-AuthSource": "AM0PR05MB6610.eurprd05.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "30 Aug 2020 11:16:33.8720 (UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n 3EeYKzXBwWK1AhncxyBAxgtYKYJ+gqSxUyGcSfajwq/MN6Kb/u7AeNfmz0av+fo5Fcgf9mlxRSmCllq2X+7yZg==",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM0PR0502MB3762",
        "Subject": "[dpdk-dev] [PATCH 11/13] app/flow-perf: add set port mask to options",
        "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": "Sometimes you need to check flow performance for\ncertain port and not all ports. Thus a portmask\noption is needed.\n\nUsage:\n--portmask=N\n\nWhere N represent the hexadecimal bitmask of ports\nused.\n\nSigned-off-by: Wisam Jaddo <wisamm@mellanox.com>\nAcked-by: Alexander Kozyrev <akozyrev@nvidia.com>\n---\n app/test-flow-perf/main.c              | 20 ++++++++++++++++++++\n doc/guides/rel_notes/release_20_08.rst |  4 +++-\n doc/guides/tools/flow-perf.rst         |  3 +++\n 3 files changed, 26 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c\nindex 0a030a462c..18199c6e2e 100644\n--- a/app/test-flow-perf/main.c\n+++ b/app/test-flow-perf/main.c\n@@ -53,6 +53,7 @@ static uint64_t flow_actions[MAX_ACTIONS_NUM];\n static uint64_t flow_attrs[MAX_ATTRS_NUM];\n static uint8_t items_idx, actions_idx, attrs_idx;\n \n+static uint64_t ports_mask;\n static volatile bool force_quit;\n static bool dump_iterations;\n static bool delete_flag;\n@@ -106,6 +107,7 @@ usage(char *progname)\n \tprintf(\"  --dump-socket-mem: To dump all socket memory\\n\");\n \tprintf(\"  --enable-fwd: To enable packets forwarding\"\n \t\t\" after insertion\\n\");\n+\tprintf(\"  --portmask=N: hexadecimal bitmask of ports used\\n\");\n \n \tprintf(\"To set flow attributes:\\n\");\n \tprintf(\"  --ingress: set ingress attribute in flows\\n\");\n@@ -189,8 +191,10 @@ usage(char *progname)\n static void\n args_parse(int argc, char **argv)\n {\n+\tuint64_t pm;\n \tchar **argvopt;\n \tchar *token;\n+\tchar *end;\n \tint n, opt;\n \tint opt_idx;\n \tsize_t i;\n@@ -514,6 +518,7 @@ args_parse(int argc, char **argv)\n \t\t{ \"deletion-rate\",              0, 0, 0 },\n \t\t{ \"dump-socket-mem\",            0, 0, 0 },\n \t\t{ \"enable-fwd\",                 0, 0, 0 },\n+\t\t{ \"portmask\",                   1, 0, 0 },\n \t\t/* Attributes */\n \t\t{ \"ingress\",                    0, 0, 0 },\n \t\t{ \"egress\",                     0, 0, 0 },\n@@ -568,6 +573,9 @@ args_parse(int argc, char **argv)\n \t\t{ \"vxlan-decap\",                0, 0, 0 },\n \t};\n \n+\tRTE_ETH_FOREACH_DEV(i)\n+\t\tports_mask |= 1 << i;\n+\n \thairpin_queues_num = 0;\n \targvopt = argv;\n \n@@ -703,6 +711,15 @@ args_parse(int argc, char **argv)\n \t\t\tif (strcmp(lgopts[opt_idx].name,\n \t\t\t\t\t\"enable-fwd\") == 0)\n \t\t\t\tenable_fwd = true;\n+\t\t\tif (strcmp(lgopts[opt_idx].name,\n+\t\t\t\t\t\"portmask\") == 0) {\n+\t\t\t\t/* parse hexadecimal string */\n+\t\t\t\tend = NULL;\n+\t\t\t\tpm = strtoull(optarg, &end, 16);\n+\t\t\t\tif ((optarg[0] == '\\0') || (end == NULL) || (*end != '\\0'))\n+\t\t\t\t\trte_exit(EXIT_FAILURE, \"Invalid fwd port mask\\n\");\n+\t\t\t\tports_mask = pm;\n+\t\t\t}\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tfprintf(stderr, \"Invalid option: %s\\n\", argv[optind]);\n@@ -880,6 +897,9 @@ flows_handler(void)\n \t\trte_exit(EXIT_FAILURE, \"No Memory available!\");\n \n \tfor (port_id = 0; port_id < nr_ports; port_id++) {\n+\t\t/* If port outside portmask */\n+\t\tif (!((ports_mask >> port_id) & 0x1))\n+\t\t\tcontinue;\n \t\tcpu_time_used = 0;\n \t\tflow_index = 0;\n \t\tif (flow_group > 0) {\ndiff --git a/doc/guides/rel_notes/release_20_08.rst b/doc/guides/rel_notes/release_20_08.rst\nindex c0f7ab6293..b21f0bfb03 100644\n--- a/doc/guides/rel_notes/release_20_08.rst\n+++ b/doc/guides/rel_notes/release_20_08.rst\n@@ -284,7 +284,9 @@ New Features\n   * Start supporting flag action.\n   * Start supporting raw-encap and raw-decap actions.\n   * Start supporting vxlan-encap and vxlan-decap actions.\n-\n+  * Add new option to set portmask for insertion/deletion:\n+    ``--portmask=N`` Where N represent the hexadecimal\n+    bitmask of ports used.\n \n Removed Items\n -------------\ndiff --git a/doc/guides/tools/flow-perf.rst b/doc/guides/tools/flow-perf.rst\nindex 15b4273cc0..bbefc978c6 100644\n--- a/doc/guides/tools/flow-perf.rst\n+++ b/doc/guides/tools/flow-perf.rst\n@@ -84,6 +84,9 @@ The command line options are:\n *\t``--enable-fwd``\n \tEnable packets forwarding after insertion/deletion operations.\n \n+*\t``--portmask=N``\n+\thexadecimal bitmask of ports to be used.\n+\n \n Attributes:\n \n",
    "prefixes": [
        "11/13"
    ]
}