Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/131465/?format=api
https://patches.dpdk.org/api/patches/131465/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230815165050.86595-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": "<20230815165050.86595-9-yuying.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230815165050.86595-9-yuying.zhang@intel.com", "date": "2023-08-15T16:50:49", "name": "[v4,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/20230815165050.86595-9-yuying.zhang@intel.com/mbox/", "series": [ { "id": 29518, "url": "https://patches.dpdk.org/api/series/29518/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29518", "date": "2023-08-15T16:50:41", "name": "add rte flow support for cpfl", "version": 4, "mbox": "https://patches.dpdk.org/series/29518/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/131465/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/131465/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 4BFCB425A3;\n\tFri, 15 Sep 2023 10:48:24 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 93A6640DCB;\n\tFri, 15 Sep 2023 10:47:53 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id E92184067A;\n Fri, 15 Sep 2023 10:47:44 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Sep 2023 01:47:44 -0700", "from dpdk-pengyuan-mev.sh.intel.com ([10.67.119.128])\n by orsmga007.jf.intel.com with ESMTP; 15 Sep 2023 01:47:42 -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=1694767665; x=1726303665;\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=MRDV2tVYof1whSHLv0nsefLDapK/8bpJXLahhujr8e9ejuOIRFgNpTbZ\n A/SBK7gMDDRm++b1F8FqTeZ+RZSDHXWa145V4EGUVN6DlIzmQE3LPoiOe\n 1Ri/NhHch1XgW8Z/nwit3l+OiFXssGAIvaO1qxILQgS8UnMu+DphFJbdG\n iUyUb7lJwwu8/wZwANDezeIR2IXY2rNPNS802fqtNe39i55hJzg9Djn0o\n KT2qCu/GlherGJxs1d56L23iT96FeaWERs0sNAxab/tvkgZJKoeuOt/u3\n XTLssVnSxnhhJJv9lTjyR6hP77fkbprJncbxUaH5BnJUsMKv5zTIkDikI A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10833\"; a=\"443265028\"", "E=Sophos;i=\"6.02,148,1688454000\"; d=\"scan'208\";a=\"443265028\"", "E=McAfee;i=\"6600,9927,10833\"; a=\"738254411\"", "E=Sophos;i=\"6.02,148,1688454000\"; d=\"scan'208\";a=\"738254411\"" ], "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 v4 8/9] app/test-pmd: refine encap content", "Date": "Tue, 15 Aug 2023 16:50:49 +0000", "Message-Id": "<20230815165050.86595-9-yuying.zhang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230815165050.86595-1-yuying.zhang@intel.com>", "References": "<20230906093407.3635038-1-wenjing.qiao@intel.com>\n <20230815165050.86595-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": [ "v4", "8/9" ] }{ "id": 131465, "url": "