Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114939/?format=api
http://patches.dpdk.org/api/patches/114939/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220812191827.3187441-8-ivan.malov@oktetlabs.ru/", "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": "<20220812191827.3187441-8-ivan.malov@oktetlabs.ru>", "list_archive_url": "https://inbox.dpdk.org/dev/20220812191827.3187441-8-ivan.malov@oktetlabs.ru", "date": "2022-08-12T19:18:21", "name": "[07/13] doc: revisit outdated flow rule examples in testpmd tutorial", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3733919d8506bde09d1bac2087a39d769c1dc4f1", "submitter": { "id": 869, "url": "http://patches.dpdk.org/api/people/869/?format=api", "name": "Ivan Malov", "email": "Ivan.Malov@oktetlabs.ru" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220812191827.3187441-8-ivan.malov@oktetlabs.ru/mbox/", "series": [ { "id": 24302, "url": "http://patches.dpdk.org/api/series/24302/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24302", "date": "2022-08-12T19:18:15", "name": "ethdev: proceed with flow subsystem rework", "version": 1, "mbox": "http://patches.dpdk.org/series/24302/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/114939/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/114939/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8E14BA0543;\n\tFri, 12 Aug 2022 21:19:13 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5406642C04;\n\tFri, 12 Aug 2022 21:18:37 +0200 (CEST)", "from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113])\n by mails.dpdk.org (Postfix) with ESMTP id 27FD540A7F\n for <dev@dpdk.org>; Fri, 12 Aug 2022 21:18:31 +0200 (CEST)", "from bree.oktetlabs.ru (bree.oktetlabs.ru [192.168.34.5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by shelob.oktetlabs.ru (Postfix) with ESMTPS id D48CEC1;\n Fri, 12 Aug 2022 22:18:30 +0300 (MSK)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru D48CEC1", "Authentication-Results": "shelob.oktetlabs.ru/D48CEC1; dkim=none;\n dkim-atps=neutral", "From": "Ivan Malov <ivan.malov@oktetlabs.ru>", "To": "dev@dpdk.org", "Cc": "Ori Kam <orika@nvidia.com>, Eli Britstein <elibr@nvidia.com>,\n Ilya Maximets <i.maximets@ovn.org>, Thomas Monjalon <thomas@monjalon.net>,\n Stephen Hemminger <stephen@networkplumber.org>,\n Jerin Jacob <jerinj@marvell.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Aman Singh <aman.deep.singh@intel.com>,\n Yuying Zhang <yuying.zhang@intel.com>", "Subject": "[PATCH 07/13] doc: revisit outdated flow rule examples in testpmd\n tutorial", "Date": "Fri, 12 Aug 2022 22:18:21 +0300", "Message-Id": "<20220812191827.3187441-8-ivan.malov@oktetlabs.ru>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20220812191827.3187441-1-ivan.malov@oktetlabs.ru>", "References": "<20220812191827.3187441-1-ivan.malov@oktetlabs.ru>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "There are testpmd examples which demonstrate flow alteration\nand steering between endpoints using outdated action PORT_ID.\nRevisit these examples to make use of new port-based actions.\n\nSigned-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>\nReviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\n---\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 48 +++++----------------\n 1 file changed, 11 insertions(+), 37 deletions(-)", "diff": "diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex 330e34427d..c105200fe7 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -5098,49 +5098,23 @@ and 50% packets are duplicated and marked with 0x1234 and sent to queue 0.\n testpmd> flow create 0 ingress group 1 pattern eth / end actions\n sample ratio 2 index 0 / queue index 1 / end\n \n-Mirroring rule with port representors (with \"transfer\" attribute), the matched\n-ingress packets with encapsulation header are sent to port id 0, and also\n-mirrored the packets and sent to port id 2.\n+Match packets coming from a VM which is referred to by means of\n+its representor ethdev (port 1), mirror 50% of them to the\n+said representor (for bookkeeping) as well as encapsulate\n+all the packets and steer them to the physical port:\n \n ::\n \n- testpmd> set sample_actions 0 port_id id 2 / end\n- testpmd> flow create 1 ingress transfer pattern eth / end actions\n- sample ratio 1 index 0 / raw_encap / port_id id 0 / end\n+ testpmd> set sample_actions 0 port_representor ethdev_port_id 1 / end\n \n-Mirroring rule with port representors (with \"transfer\" attribute), the matched\n-ingress packets are sent to port id 2, and also mirrored the packets with\n-encapsulation header and sent to port id 0.\n+ testpmd> set vxlan ip-version ipv4 vni 4 udp-src 32 udp-dst 4789 ip-src 127.0.0.1\n+ ip-dst 127.0.0.2 eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22\n \n-::\n-\n- testpmd> set sample_actions 0 raw_encap / port_id id 0 / end\n- testpmd> flow create 0 ingress transfer pattern eth / end actions\n- sample ratio 1 index 0 / port_id id 2 / end\n+ testpmd> flow create 0 transfer pattern represented_port ethdev_port_id is 1 / end\n+ actions sample ratio 2 index 0 / vxlan_encap /\n+ represented_port ethdev_port_id 0 / end\n \n-Mirroring rule with port representors (with \"transfer\" attribute), the matched\n-ingress packets are sent to port id 2, and also mirrored the packets with\n-VXLAN encapsulation header and sent to port id 0.\n-\n-::\n-\n- testpmd> set vxlan ip-version ipv4 vni 4 udp-src 4 udp-dst 4 ip-src 127.0.0.1\n- ip-dst 128.0.0.1 eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22\n- testpmd> set sample_actions 0 vxlan_encap / port_id id 0 / end\n- testpmd> flow create 0 ingress transfer pattern eth / end actions\n- sample ratio 1 index 0 / port_id id 2 / end\n-\n-Mirroring rule with port representors (with \"transfer\" attribute), the matched\n-ingress packets are sent to port id 2, and also mirrored the packets with\n-NVGRE encapsulation header and sent to port id 0.\n-\n-::\n-\n- testpmd> set nvgre ip-version ipv4 tni 4 ip-src 127.0.0.1 ip-dst 128.0.0.1\n- eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22\n- testpmd> set sample_actions 0 nvgre_encap / port_id id 0 / end\n- testpmd> flow create 0 ingress transfer pattern eth / end actions\n- sample ratio 1 index 0 / port_id id 2 / end\n+The rule is inserted via port 0 (assumed to have \"transfer\" privilege).\n \n Sample integrity rules\n ~~~~~~~~~~~~~~~~~~~~~~\n", "prefixes": [ "07/13" ] }{ "id": 114939, "url": "