Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/91272/?format=api
http://patches.dpdk.org/api/patches/91272/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-12-qi.z.zhang@intel.com/", "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": "<20210413143038.2621294-12-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210413143038.2621294-12-qi.z.zhang@intel.com", "date": "2021-04-13T14:30:35", "name": "[v3,11/14] net/ice/base: add inner VLAN protocol type for QinQ filter", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "2a5236dd50575dad9efd97bb8ba550a1477af2cd", "submitter": { "id": 504, "url": "http://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-12-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 16337, "url": "http://patches.dpdk.org/api/series/16337/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16337", "date": "2021-04-13T14:30:24", "name": "ice: base code update batch 2", "version": 3, "mbox": "http://patches.dpdk.org/series/16337/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/91272/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/91272/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 B024FA0524;\n\tTue, 13 Apr 2021 16:28:12 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CD3FC16108F;\n\tTue, 13 Apr 2021 16:27:16 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 0CFA2161082\n for <dev@dpdk.org>; Tue, 13 Apr 2021 16:27:14 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2021 07:27:14 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 13 Apr 2021 07:27:13 -0700" ], "IronPort-SDR": [ "\n 9WwWlVpNNi9FDXLKpkuNNy7UxdCWZmoEaLJRpR3SWu9Orb1rnaFFX5aERk1g5ZMllSljFa1NfU\n fhnJKPNRY65w==", "\n 74zaLgtba8VfQnZkIJX2VfUDJs1v83fm2mI/mwSaAzNZkL4WO50ur+6zwSocwdEy9RH1pGYN1b\n khpiZV3zaasA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,9953\"; a=\"214904285\"", "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"214904285\"", "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"417875254\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, ferruh.yigit@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Haiyue Wang <haiyue.wang@intel.com>", "Date": "Tue, 13 Apr 2021 22:30:35 +0800", "Message-Id": "<20210413143038.2621294-12-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210413143038.2621294-1-qi.z.zhang@intel.com>", "References": "<20210329141411.2395069-1-qi.z.zhang@intel.com>\n <20210413143038.2621294-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 11/14] net/ice/base: add inner VLAN protocol\n type for QinQ filter", "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": "Since VLAN protocol type 'ICE_VLAN_OFOS' has been changed to map\nthe hardware VLAN protocol ID to 'ICE_VLAN_OF_HW (16)' when in Double\nVLAN mode, and to 'ICE_VLAN_OL_HW (17)' when in Single VLAN mode.\n\nSo 'ICE_VLAN_OFOS' can't be used with 'ICE_VLAN_EX' which is outer VLAN\nhardware protocol ID 'ICE_VLAN_OF_HW (16)' to do the QinQ VLAN pattern.\n\nIntroduce the new inner VLAN protocol type 'ICE_VLAN_IN', which is inner\nVLAN hardware protocol ID 'ICE_VLAN_OL_HW (17)'.\n\nNow for QinQ VLAN pattern, the protocol 'ICE_VLAN_EX' and 'ICE_VLAN_IN'\nshould be used to set the related protocol header fields like VLAN ID.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nAcked-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/base/ice_protocol_type.h | 1 +\n drivers/net/ice/base/ice_switch.c | 23 +++++++++++++----------\n 2 files changed, 14 insertions(+), 10 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_protocol_type.h b/drivers/net/ice/base/ice_protocol_type.h\nindex ffc887c7be..d078061afb 100644\n--- a/drivers/net/ice/base/ice_protocol_type.h\n+++ b/drivers/net/ice/base/ice_protocol_type.h\n@@ -53,6 +53,7 @@ enum ice_protocol_type {\n \tICE_NAT_T,\n \tICE_GTP_NO_PAY,\n \tICE_VLAN_EX,\n+\tICE_VLAN_IN,\n \tICE_PROTOCOL_LAST\n };\n \ndiff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex db0cc03324..763c7b8224 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -1612,7 +1612,7 @@ static const struct ice_dummy_pkt_offsets dummy_qinq_ipv4_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL, 12 },\n \t{ ICE_VLAN_EX,\t\t14 },\n-\t{ ICE_VLAN_OFOS,\t18 },\n+\t{ ICE_VLAN_IN,\t\t18 },\n \t{ ICE_IPV4_OFOS,\t22 },\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n@@ -1625,7 +1625,7 @@ static const u8 dummy_qinq_ipv4_pkt[] = {\n \t0x91, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n \n \t0x00, 0x00, 0x81, 0x00, /* ICE_VLAN_EX 14 */\n-\t0x00, 0x00, 0x08, 0x00, /* ICE_VLAN_OFOS 18 */\n+\t0x00, 0x00, 0x08, 0x00, /* ICE_VLAN_IN 18 */\n \n \t0x45, 0x00, 0x00, 0x1c, /* ICE_IPV4_OFOS 22 */\n \t0x00, 0x01, 0x00, 0x00,\n@@ -1643,7 +1643,7 @@ static const struct ice_dummy_pkt_offsets dummy_qinq_ipv6_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL, 12 },\n \t{ ICE_VLAN_EX,\t\t14 },\n-\t{ ICE_VLAN_OFOS,\t18 },\n+\t{ ICE_VLAN_IN,\t\t18 },\n \t{ ICE_IPV6_OFOS,\t22 },\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n@@ -1656,7 +1656,7 @@ static const u8 dummy_qinq_ipv6_pkt[] = {\n \t0x91, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n \n \t0x00, 0x00, 0x81, 0x00, /* ICE_VLAN_EX 14 */\n-\t0x00, 0x00, 0x86, 0xDD, /* ICE_VLAN_OFOS 18 */\n+\t0x00, 0x00, 0x86, 0xDD, /* ICE_VLAN_IN 18 */\n \n \t0x60, 0x00, 0x00, 0x00, /* ICE_IPV6_OFOS 22 */\n \t0x00, 0x10, 0x11, 0x00, /* Next header UDP */\n@@ -1682,7 +1682,7 @@ static const struct ice_dummy_pkt_offsets dummy_qinq_pppoe_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL, 12 },\n \t{ ICE_VLAN_EX,\t\t14 },\n-\t{ ICE_VLAN_OFOS,\t18 },\n+\t{ ICE_VLAN_IN,\t\t18 },\n \t{ ICE_PPPOE,\t\t22 },\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n@@ -1692,7 +1692,7 @@ struct ice_dummy_pkt_offsets dummy_qinq_pppoe_ipv4_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL, 12 },\n \t{ ICE_VLAN_EX,\t\t14 },\n-\t{ ICE_VLAN_OFOS,\t18 },\n+\t{ ICE_VLAN_IN,\t\t18 },\n \t{ ICE_PPPOE,\t\t22 },\n \t{ ICE_IPV4_OFOS,\t30 },\n \t{ ICE_PROTOCOL_LAST,\t0 },\n@@ -1706,14 +1706,14 @@ static const u8 dummy_qinq_pppoe_ipv4_pkt[] = {\n \t0x91, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n \n \t0x00, 0x00, 0x81, 0x00, /* ICE_VLAN_EX 14 */\n-\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_OFOS 18 */\n+\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_IN 18 */\n \n \t0x11, 0x00, 0x00, 0x00, /* ICE_PPPOE 22 */\n \t0x00, 0x16,\n \n \t0x00, 0x21,\t\t/* PPP Link Layer 28 */\n \n-\t0x45, 0x00, 0x00, 0x14, /* ICE_IPV4_IL 30 */\n+\t0x45, 0x00, 0x00, 0x14, /* ICE_IPV4_OFOS 30 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -1727,7 +1727,7 @@ struct ice_dummy_pkt_offsets dummy_qinq_pppoe_packet_ipv6_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n \t{ ICE_VLAN_EX,\t\t14},\n-\t{ ICE_VLAN_OFOS,\t18 },\n+\t{ ICE_VLAN_IN,\t\t18 },\n \t{ ICE_PPPOE,\t\t22 },\n \t{ ICE_IPV6_OFOS,\t30 },\n \t{ ICE_PROTOCOL_LAST,\t0 },\n@@ -1741,7 +1741,7 @@ static const u8 dummy_qinq_pppoe_ipv6_packet[] = {\n \t0x91, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n \n \t0x00, 0x00, 0x81, 0x00, /* ICE_VLAN_EX 14 */\n-\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_OFOS 18 */\n+\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_IN 18 */\n \n \t0x11, 0x00, 0x00, 0x00, /* ICE_PPPOE 22 */\n \t0x00, 0x2a,\n@@ -6530,6 +6530,7 @@ static const struct ice_prot_ext_tbl_entry ice_prot_ext[ICE_PROTOCOL_LAST] = {\n \t{ ICE_NAT_T,\t\t{ 8, 10, 12, 14 } },\n \t{ ICE_GTP_NO_PAY,\t{ 8, 10, 12, 14 } },\n \t{ ICE_VLAN_EX,\t\t{ 0, 2 } },\n+\t{ ICE_VLAN_IN,\t\t{ 0, 2 } },\n };\n \n /* The following table describes preferred grouping of recipes.\n@@ -6564,6 +6565,7 @@ static struct ice_protocol_entry ice_prot_id_tbl[ICE_PROTOCOL_LAST] = {\n \t{ ICE_NAT_T,\t\tICE_UDP_ILOS_HW },\n \t{ ICE_GTP_NO_PAY,\tICE_UDP_ILOS_HW },\n \t{ ICE_VLAN_EX,\t\tICE_VLAN_OF_HW },\n+\t{ ICE_VLAN_IN,\t\tICE_VLAN_OL_HW },\n };\n \n /**\n@@ -8139,6 +8141,7 @@ ice_fill_adv_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\t\tbreak;\n \t\tcase ICE_VLAN_OFOS:\n \t\tcase ICE_VLAN_EX:\n+\t\tcase ICE_VLAN_IN:\n \t\t\tlen = sizeof(struct ice_vlan_hdr);\n \t\t\tbreak;\n \t\tcase ICE_IPV4_OFOS:\n", "prefixes": [ "v3", "11/14" ] }{ "id": 91272, "url": "