Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/131474/?format=api
https://patches.dpdk.org/api/patches/131474/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230915100047.90153-9-yuying.zhang@intel.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": "<20230915100047.90153-9-yuying.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230915100047.90153-9-yuying.zhang@intel.com", "date": "2023-09-15T10:00:46", "name": "[v5,8/9] app/test-pmd: refine encap content", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ed6751e8dd9af8bc010b3839bfae600fafd4f563", "submitter": { "id": 1844, "url": "https://patches.dpdk.org/api/people/1844/?format=api", "name": "Zhang, Yuying", "email": "yuying.zhang@intel.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/20230915100047.90153-9-yuying.zhang@intel.com/mbox/", "series": [ { "id": 29519, "url": "https://patches.dpdk.org/api/series/29519/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29519", "date": "2023-09-15T10:00:38", "name": "add rte flow support for cpfl", "version": 5, "mbox": "https://patches.dpdk.org/series/29519/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/131474/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/131474/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 16D1C425A3;\n\tFri, 15 Sep 2023 11:03:17 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C551640E7C;\n\tFri, 15 Sep 2023 11:02:45 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 1670A40A71;\n Fri, 15 Sep 2023 11:02:43 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Sep 2023 02:02:15 -0700", "from dpdk-pengyuan-mev.sh.intel.com ([10.67.119.128])\n by orsmga004.jf.intel.com with ESMTP; 15 Sep 2023 02:02:13 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1694768564; x=1726304564;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=8MYoGPxd+kw5nNghlTl3WRiwXiRybRKIj03aPEizVFs=;\n b=UG3GrhGhMOW/twJ/7G0x5jys76KI4F8b/NtAAMwTHQb/h5M64b53pgmw\n DSJAM8/05qqrzMMe2l/svooCf9Xyy2ZF3bL8cE2OzEqzB7/cnb0fI70Q3\n mgJY6+8nkNLnpAUtlN9FER6V2UZBglNua6z98nfVYzR4hNNaI4d4adOKH\n M4g1Gv3icLB2WSBApJd2yyhNnTAdARp52w2MoRAfIBOuHYRTmSlKiytvE\n RqiKoA13cSio1suJvg9PZFyY+KgkormqYQONGAJiRrbRJsmoYOehKNgYp\n HaEwevqQApBGFFOLKhlSHAdzpZ0fYmtYxl3p6uIXEOFQHL73pKK2YmWbq Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10833\"; a=\"378118058\"", "E=Sophos;i=\"6.02,148,1688454000\"; d=\"scan'208\";a=\"378118058\"", "E=McAfee;i=\"6600,9927,10833\"; a=\"868631040\"", "E=Sophos;i=\"6.02,148,1688454000\"; d=\"scan'208\";a=\"868631040\"" ], "X-ExtLoop1": "1", "From": "\"Zhang, Yuying\" <yuying.zhang@intel.com>", "To": "yuying.zhang@intel.com, dev@dpdk.org, qi.z.zhang@intel.com,\n beilei.xing@intel.com, jingjing.wu@intel.com", "Cc": "mingxia.liu@intel.com,\n\tstable@dpdk.org", "Subject": "[PATCH v5 8/9] app/test-pmd: refine encap content", "Date": "Fri, 15 Sep 2023 10:00:46 +0000", "Message-Id": "<20230915100047.90153-9-yuying.zhang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230915100047.90153-1-yuying.zhang@intel.com>", "References": "<20230906093407.3635038-1-wenjing.qiao@intel.com>\n <20230915100047.90153-1-yuying.zhang@intel.com>", "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": "From: Yuying Zhang <yuying.zhang@intel.com>\n\nRefine vxlan encap content of all protocol headers.\n\nFixes: 1960be7d32f8 (\"app/testpmd: add VXLAN encap/decap\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yuying Zhang <yuying.zhang@intel.com>\n---\n app/test-pmd/cmdline_flow.c | 12 ++++++++++--\n 1 file changed, 10 insertions(+), 2 deletions(-)", "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 94827bcc4a..b6cc0d9620 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -8514,7 +8514,7 @@ parse_setup_vxlan_encap_data(struct action_vxlan_encap_data *action_vxlan_encap_\n \t\t\t\t.type = RTE_FLOW_ITEM_TYPE_END,\n \t\t\t},\n \t\t},\n-\t\t.item_eth.hdr.ether_type = 0,\n+\t\t.item_eth.hdr.ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4),\n \t\t.item_vlan = {\n \t\t\t.hdr.vlan_tci = vxlan_encap_conf.vlan_tci,\n \t\t\t.hdr.eth_proto = 0,\n@@ -8522,24 +8522,32 @@ parse_setup_vxlan_encap_data(struct action_vxlan_encap_data *action_vxlan_encap_\n \t\t.item_ipv4.hdr = {\n \t\t\t.src_addr = vxlan_encap_conf.ipv4_src,\n \t\t\t.dst_addr = vxlan_encap_conf.ipv4_dst,\n+\t\t\t.version_ihl = RTE_IPV4_VHL_DEF,\n+\t\t\t.next_proto_id = IPPROTO_UDP,\n+\t\t\t.time_to_live = IPDEFTTL,\n+\t\t\t.hdr_checksum = rte_cpu_to_be_16(1),\n \t\t},\n \t\t.item_udp.hdr = {\n \t\t\t.src_port = vxlan_encap_conf.udp_src,\n \t\t\t.dst_port = vxlan_encap_conf.udp_dst,\n+\t\t\t.dgram_cksum = RTE_BE16(0x01),\n \t\t},\n-\t\t.item_vxlan.hdr.flags = 0,\n+\t\t.item_vxlan.hdr.flags = 0x08,\n \t};\n \tmemcpy(action_vxlan_encap_data->item_eth.hdr.dst_addr.addr_bytes,\n \t vxlan_encap_conf.eth_dst, RTE_ETHER_ADDR_LEN);\n \tmemcpy(action_vxlan_encap_data->item_eth.hdr.src_addr.addr_bytes,\n \t vxlan_encap_conf.eth_src, RTE_ETHER_ADDR_LEN);\n \tif (!vxlan_encap_conf.select_ipv4) {\n+\t\taction_vxlan_encap_data->item_eth.type = RTE_BE16(RTE_ETHER_TYPE_IPV6);\n \t\tmemcpy(&action_vxlan_encap_data->item_ipv6.hdr.src_addr,\n \t\t &vxlan_encap_conf.ipv6_src,\n \t\t sizeof(vxlan_encap_conf.ipv6_src));\n \t\tmemcpy(&action_vxlan_encap_data->item_ipv6.hdr.dst_addr,\n \t\t &vxlan_encap_conf.ipv6_dst,\n \t\t sizeof(vxlan_encap_conf.ipv6_dst));\n+\t\taction_vxlan_encap_data->item_ipv6.hdr.proto = IPPROTO_UDP;\n+\t\taction_vxlan_encap_data->item_ipv6.hdr.hop_limits = IPDEFTTL;\n \t\taction_vxlan_encap_data->items[2] = (struct rte_flow_item){\n \t\t\t.type = RTE_FLOW_ITEM_TYPE_IPV6,\n \t\t\t.spec = &action_vxlan_encap_data->item_ipv6,\n", "prefixes": [ "v5", "8/9" ] }{ "id": 131474, "url": "