Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/96742/?format=api
http://patchwork.dpdk.org/api/patches/96742/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210810025140.1698163-4-qi.z.zhang@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20210810025140.1698163-4-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210810025140.1698163-4-qi.z.zhang@intel.com", "date": "2021-08-10T02:51:15", "name": "[03/28] net/ice/base: add ethertype IPv6 check for dummy packet", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "7639404b5af43c3ab89ad6eb40d87ad15d75259f", "submitter": { "id": 504, "url": "http://patchwork.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 1540, "url": "http://patchwork.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210810025140.1698163-4-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 18242, "url": "http://patchwork.dpdk.org/api/series/18242/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=18242", "date": "2021-08-10T02:51:12", "name": "ice: base code update", "version": 1, "mbox": "http://patchwork.dpdk.org/series/18242/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/96742/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/96742/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 9E1B7A0C54;\n\tTue, 10 Aug 2021 04:48:57 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9773340683;\n\tTue, 10 Aug 2021 04:48:42 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 98CED41152\n for <dev@dpdk.org>; Tue, 10 Aug 2021 04:48:40 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Aug 2021 19:48:40 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 09 Aug 2021 19:48:37 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10070\"; a=\"214808408\"", "E=Sophos;i=\"5.84,309,1620716400\"; d=\"scan'208\";a=\"214808408\"", "E=Sophos;i=\"5.84,309,1620716400\"; d=\"scan'208\";a=\"483823532\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "junfeng.guo@intel.com, dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Grzegorz Nitka <grzegorz.nitka@intel.com>", "Date": "Tue, 10 Aug 2021 10:51:15 +0800", "Message-Id": "<20210810025140.1698163-4-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210810025140.1698163-1-qi.z.zhang@intel.com>", "References": "<20210810025140.1698163-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 03/28] net/ice/base: add ethertype IPv6 check for\n dummy packet", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "In order to support switch rule for ethertype filter\nwith ipv6 ethertype id, it has to check ethertype and\nthen find a proper dummy packet. There was a silent\nassumption that packet is ipv4, unless src or dst ipv6\naddress is specified in a flow.\n\nSigned-off-by: Grzegorz Nitka <grzegorz.nitka@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_switch.c | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex 5926635088..4a829859f4 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -10,9 +10,9 @@\n #define ICE_ETH_ETHTYPE_OFFSET\t\t12\n #define ICE_ETH_VLAN_TCI_OFFSET\t\t14\n #define ICE_MAX_VLAN_ID\t\t\t0xFFF\n+#define ICE_IPV6_ETHER_ID\t\t0x86DD\n #define ICE_IPV4_NVGRE_PROTO_ID\t\t0x002F\n #define ICE_PPP_IPV6_PROTO_ID\t\t0x0057\n-#define ICE_IPV6_ETHER_ID\t\t0x86DD\n #define ICE_TCP_PROTO_ID\t\t0x06\n #define ICE_GTPU_PROFILE\t\t24\n #define ICE_ETH_P_8021Q\t\t\t0x8100\n@@ -7889,6 +7889,12 @@ ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\t\tipv6 = true;\n \t\telse if (lkups[i].type == ICE_VLAN_OFOS)\n \t\t\tvlan = true;\n+\t\telse if (lkups[i].type == ICE_ETYPE_OL &&\n+\t\t\t lkups[i].h_u.ethertype.ethtype_id ==\n+\t\t\t\tCPU_TO_BE16(ICE_IPV6_ETHER_ID) &&\n+\t\t\t lkups[i].m_u.ethertype.ethtype_id ==\n+\t\t\t\tCPU_TO_BE16(0xFFFF))\n+\t\t\tipv6 = true;\n \t\telse if (lkups[i].type == ICE_IPV4_OFOS &&\n \t\t\t lkups[i].h_u.ipv4_hdr.protocol ==\n \t\t\t\tICE_IPV4_NVGRE_PROTO_ID &&\n@@ -7901,12 +7907,6 @@ ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\t\t lkups[i].m_u.pppoe_hdr.ppp_prot_id ==\n \t\t\t\t0xFFFF)\n \t\t\tipv6 = true;\n-\t\telse if (lkups[i].type == ICE_ETYPE_OL &&\n-\t\t\t lkups[i].h_u.ethertype.ethtype_id ==\n-\t\t\t\tCPU_TO_BE16(ICE_IPV6_ETHER_ID) &&\n-\t\t\t lkups[i].m_u.ethertype.ethtype_id ==\n-\t\t\t\t\t0xFFFF)\n-\t\t\tipv6 = true;\n \t\telse if (lkups[i].type == ICE_IPV4_IL &&\n \t\t\t lkups[i].h_u.ipv4_hdr.protocol ==\n \t\t\t\tICE_TCP_PROTO_ID &&\n", "prefixes": [ "03/28" ] }{ "id": 96742, "url": "