Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85582/?format=api
https://patches.dpdk.org/api/patches/85582/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201221054636.4574-1-psatheesh@marvell.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": "<20201221054636.4574-1-psatheesh@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201221054636.4574-1-psatheesh@marvell.com", "date": "2020-12-21T05:46:36", "name": "app/testpmd: add PF and VF targets to flow action type sample", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "8c1086ed98c5f4c7f411426e6f8a23c6599c9493", "submitter": { "id": 1663, "url": "https://patches.dpdk.org/api/people/1663/?format=api", "name": "Satheesh Paul Antonysamy", "email": "psatheesh@marvell.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/20201221054636.4574-1-psatheesh@marvell.com/mbox/", "series": [ { "id": 14397, "url": "https://patches.dpdk.org/api/series/14397/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14397", "date": "2020-12-21T05:46:36", "name": "app/testpmd: add PF and VF targets to flow action type sample", "version": 1, "mbox": "https://patches.dpdk.org/series/14397/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85582/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/85582/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 7C417A09EF;\n\tMon, 21 Dec 2020 06:46:52 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5C027CB83;\n\tMon, 21 Dec 2020 06:46:50 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 5A907CB7F\n for <dev@dpdk.org>; Mon, 21 Dec 2020 06:46:48 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 0BL5e5Wb019640; Sun, 20 Dec 2020 21:46:46 -0800", "from sc-exch01.marvell.com ([199.233.58.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 35j4wvhckt-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 20 Dec 2020 21:46:46 -0800", "from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sun, 20 Dec 2020 21:46:45 -0800", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sun, 20 Dec 2020 21:46:43 -0800", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Sun, 20 Dec 2020 21:46:43 -0800", "from localhost.localdomain (unknown [10.28.34.33])\n by maili.marvell.com (Postfix) with ESMTP id AA3FF3F7040;\n Sun, 20 Dec 2020 21:46:41 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=QsYw2Yc0svmllKJCplWKPvWCELKXWM6DFnubjZbTpSc=;\n b=gqhu14Pe0bvQAG5gJR6gpA5nCJv9Q1lqvTScfYBZaYeYsjegRQ5mfRgvyGFwc/YaNNcr\n eQ503l6gy7lJQNIhclluk/svZLT4sHncr07Hv960EKfxky7p7BUQ2guFC5a/SungiYF3\n +Uj/y1mWFKdyi9BzTWXAeqx3RBWeSUFTjn9uLJd8r+2/wS9LCAd6HnNf0YN9jhxbFp1g\n bEr7eNakWj2QnjnPei7HJYXgAL6TcyCc7nNSzOHo3yrbzQBgclH4kEoTOiB+kW38Qklt\n +1RVS79hLDs3WYzqDKvQhOh1/7wkV94ELsGE+Djg9BARh5EXmaJawGdns2/Jcc2q9ksx oA==", "From": "<psatheesh@marvell.com>", "To": "Ori Kam <orika@nvidia.com>, Wenzhuo Lu <wenzhuo.lu@intel.com>, Beilei Xing\n <beilei.xing@intel.com>, Bernard Iremonger <bernard.iremonger@intel.com>", "CC": "<dev@dpdk.org>, Satheesh Paul <psatheesh@marvell.com>", "Date": "Mon, 21 Dec 2020 11:16:36 +0530", "Message-ID": "<20201221054636.4574-1-psatheesh@marvell.com>", "X-Mailer": "git-send-email 2.25.4", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737\n definitions=2020-12-21_02:2020-12-19,\n 2020-12-21 signatures=0", "Subject": "[dpdk-dev] [PATCH] app/testpmd: add PF and VF targets to flow\n\taction type sample", "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: Satheesh Paul <psatheesh@marvell.com>\n\nAdd support to specify PF or VF as targets in \"set sample_actions\"\ncommand.\n\nSigned-off-by: Satheesh Paul <psatheesh@marvell.com>\n---\n\nThe changes add support for below usecases.\n\n1. Sample mirror to PF\ntestpmd>set sample_actions 0 / pf / end\n#pkts to VF id 2 will be mirrored to the PF\ntestpmd>flow create 0 ingress pattern eth / end actions sample ratio 1 \\\n index 0 / vf id 2 / end\n\n2. Sample mirror to VF\ntestpmd>set sample_actions 1 / vf id 1 / end\n#pkts to VF id 2 will be mirrored to VF id 1\ntestpmd>flow create 0 ingress pattern eth / end actions sample ratio 1 \\\n index 1 / vf id 2 / end\n\n app/test-pmd/cmdline_flow.c | 9 +++++++++\n 1 file changed, 9 insertions(+)", "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 585cab98b..12f2b1664 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -560,6 +560,7 @@ struct rte_flow_action_queue sample_queue[RAW_SAMPLE_CONFS_MAX_NUM];\n struct rte_flow_action_count sample_count[RAW_SAMPLE_CONFS_MAX_NUM];\n struct rte_flow_action_port_id sample_port_id[RAW_SAMPLE_CONFS_MAX_NUM];\n struct rte_flow_action_raw_encap sample_encap[RAW_SAMPLE_CONFS_MAX_NUM];\n+struct rte_flow_action_vf sample_vf[RAW_SAMPLE_CONFS_MAX_NUM];\n \n /** Maximum number of subsequent tokens and arguments on the stack. */\n #define CTX_STACK_SIZE 16\n@@ -7558,6 +7559,14 @@ cmd_set_raw_parsed_sample(const struct buffer *in)\n \t\t\t\t(const void *)action->conf, size);\n \t\t\taction->conf = &sample_port_id[idx];\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_PF:\n+\t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_VF:\n+\t\t\tsize = sizeof(struct rte_flow_action_vf);\n+\t\t\trte_memcpy(&sample_vf[idx],\n+\t\t\t(const void *)action->conf, size);\n+\t\t\taction->conf = &sample_vf[idx];\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\tprintf(\"Error - Not supported action\\n\");\n \t\t\treturn;\n", "prefixes": [] }{ "id": 85582, "url": "