Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/71037/?format=api
http://patches.dpdk.org/api/patches/71037/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200609120001.35110-31-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": "<20200609120001.35110-31-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200609120001.35110-31-qi.z.zhang@intel.com", "date": "2020-06-09T11:59:39", "name": "[v2,30/52] net/ice/base: add support for more PPPoE packet type", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "909bc55d2549b4fe9e439cea7abd2dfa4ca48312", "submitter": { "id": 504, "url": "http://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 31221, "url": "http://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200609120001.35110-31-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 10359, "url": "http://patches.dpdk.org/api/series/10359/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10359", "date": "2020-06-09T11:59:09", "name": "net/ice: base code update", "version": 2, "mbox": "http://patches.dpdk.org/series/10359/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/71037/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/71037/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9B362A0516;\n\tTue, 9 Jun 2020 14:01:10 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6858A1BF60;\n\tTue, 9 Jun 2020 13:57:13 +0200 (CEST)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id 5D5EF1BF0B\n for <dev@dpdk.org>; Tue, 9 Jun 2020 13:57:02 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Jun 2020 04:57:02 -0700", "from dpdk51.sh.intel.com ([10.67.111.82])\n by fmsmga005.fm.intel.com with ESMTP; 09 Jun 2020 04:56:59 -0700" ], "IronPort-SDR": [ "\n PBZDLbihr/LeVfDXbMEV1AX8pzePzs4JFRuf9zEtQ1mtkKHitXPafsFH+CmWu8NRXmAEkltHba\n Ulbpm4cDyy4w==", "\n LtTpQk8GZEyxFoHJq+IbshKOx2mquo+oriLMVy6//2Rz/VTunR/oErFcTjXF/yK7WB0NXsK6eZ\n 9z+SLEpz2GWw==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.73,492,1583222400\"; d=\"scan'208\";a=\"473044180\"", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "xiaolong.ye@intel.com, dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Wei Zhao <wei.zhao1@intel.com>,\n \"Paul M . Stillwell Jr\" <paul.m.stillwell.jr@intel.com>", "Date": "Tue, 9 Jun 2020 19:59:39 +0800", "Message-Id": "<20200609120001.35110-31-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20200609120001.35110-1-qi.z.zhang@intel.com>", "References": "<20200603024016.30636-1-qi.z.zhang@intel.com>\n <20200609120001.35110-1-qi.z.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 30/52] net/ice/base: add support for more\n\tPPPoE packet type", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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": "This patch add more dummy packet type for pppoe packet,\nit enable tcp/udp layer of ipv4/ipv6 for pppoe payload,\nso we can use L4 dst/src port as input set for switch\nfilter.\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\nSigned-off-by: Paul M. Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_protocol_type.h | 7 +\n drivers/net/ice/base/ice_switch.c | 252 ++++++++++++++++++++++++++++++-\n drivers/net/ice/base/ice_switch.h | 7 +\n 3 files changed, 265 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ice/base/ice_protocol_type.h b/drivers/net/ice/base/ice_protocol_type.h\nindex 964561d23..85af7513c 100644\n--- a/drivers/net/ice/base/ice_protocol_type.h\n+++ b/drivers/net/ice/base/ice_protocol_type.h\n@@ -68,6 +68,13 @@ enum ice_sw_tunnel_type {\n \t\t\t */\n \tICE_SW_TUN_GTP,\n \tICE_SW_TUN_PPPOE,\n+\tICE_SW_TUN_PPPOE_PAY,\n+\tICE_SW_TUN_PPPOE_IPV4,\n+\tICE_SW_TUN_PPPOE_IPV4_TCP,\n+\tICE_SW_TUN_PPPOE_IPV4_UDP,\n+\tICE_SW_TUN_PPPOE_IPV6,\n+\tICE_SW_TUN_PPPOE_IPV6_TCP,\n+\tICE_SW_TUN_PPPOE_IPV6_UDP,\n \tICE_SW_TUN_IPV4_ESP,\n \tICE_SW_TUN_IPV6_ESP,\n \tICE_SW_TUN_IPV4_AH,\ndiff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex fa3a59e51..94268d560 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -542,6 +542,15 @@ static const struct ice_dummy_pkt_offsets dummy_pppoe_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n+static const struct ice_dummy_pkt_offsets dummy_pppoe_packet_ipv4_offsets[] = {\n+\t{ ICE_MAC_OFOS,\t\t0 },\n+\t{ ICE_ETYPE_OL,\t\t12 },\n+\t{ ICE_VLAN_OFOS,\t14},\n+\t{ ICE_PPPOE,\t\t18 },\n+\t{ ICE_IPV4_OFOS,\t26 },\n+\t{ ICE_PROTOCOL_LAST,\t0 },\n+};\n+\n static const u8 dummy_pppoe_ipv4_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n@@ -565,6 +574,92 @@ static const u8 dummy_pppoe_ipv4_packet[] = {\n \t0x00, 0x00,\t\t/* 2 bytes for 4 bytes alignment */\n };\n \n+static const\n+struct ice_dummy_pkt_offsets dummy_pppoe_ipv4_tcp_packet_offsets[] = {\n+\t{ ICE_MAC_OFOS,\t\t0 },\n+\t{ ICE_ETYPE_OL,\t\t12 },\n+\t{ ICE_VLAN_OFOS,\t14},\n+\t{ ICE_PPPOE,\t\t18 },\n+\t{ ICE_IPV4_OFOS,\t26 },\n+\t{ ICE_TCP_IL,\t\t46 },\n+\t{ ICE_PROTOCOL_LAST,\t0 },\n+};\n+\n+static const u8 dummy_pppoe_ipv4_tcp_packet[] = {\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x81, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n+\n+\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_OFOS 14 */\n+\n+\t0x11, 0x00, 0x00, 0x00, /* ICE_PPPOE 18 */\n+\t0x00, 0x16,\n+\n+\t0x00, 0x21,\t\t/* PPP Link Layer 24 */\n+\n+\t0x45, 0x00, 0x00, 0x28, /* ICE_IPV4_OFOS 26 */\n+\t0x00, 0x01, 0x00, 0x00,\n+\t0x00, 0x06, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_TCP_IL 46 */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x50, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x00, 0x00,\t\t/* 2 bytes for 4 bytes alignment */\n+};\n+\n+static const\n+struct ice_dummy_pkt_offsets dummy_pppoe_ipv4_udp_packet_offsets[] = {\n+\t{ ICE_MAC_OFOS,\t\t0 },\n+\t{ ICE_ETYPE_OL,\t\t12 },\n+\t{ ICE_VLAN_OFOS,\t14},\n+\t{ ICE_PPPOE,\t\t18 },\n+\t{ ICE_IPV4_OFOS,\t26 },\n+\t{ ICE_UDP_ILOS,\t\t46 },\n+\t{ ICE_PROTOCOL_LAST,\t0 },\n+};\n+\n+static const u8 dummy_pppoe_ipv4_udp_packet[] = {\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x81, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n+\n+\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_OFOS 14 */\n+\n+\t0x11, 0x00, 0x00, 0x00, /* ICE_PPPOE 18 */\n+\t0x00, 0x16,\n+\n+\t0x00, 0x21,\t\t/* PPP Link Layer 24 */\n+\n+\t0x45, 0x00, 0x00, 0x1c, /* ICE_IPV4_OFOS 26 */\n+\t0x00, 0x01, 0x00, 0x00,\n+\t0x00, 0x11, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_UDP_ILOS 46 */\n+\t0x00, 0x08, 0x00, 0x00,\n+\n+\t0x00, 0x00,\t\t/* 2 bytes for 4 bytes alignment */\n+};\n+\n+static const struct ice_dummy_pkt_offsets dummy_pppoe_packet_ipv6_offsets[] = {\n+\t{ ICE_MAC_OFOS,\t\t0 },\n+\t{ ICE_ETYPE_OL,\t\t12 },\n+\t{ ICE_VLAN_OFOS,\t14},\n+\t{ ICE_PPPOE,\t\t18 },\n+\t{ ICE_IPV6_OFOS,\t26 },\n+\t{ ICE_PROTOCOL_LAST,\t0 },\n+};\n+\n static const u8 dummy_pppoe_ipv6_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n@@ -593,6 +688,93 @@ static const u8 dummy_pppoe_ipv6_packet[] = {\n \t0x00, 0x00,\t\t/* 2 bytes for 4 bytes alignment */\n };\n \n+static const\n+struct ice_dummy_pkt_offsets dummy_pppoe_packet_ipv6_tcp_offsets[] = {\n+\t{ ICE_MAC_OFOS,\t\t0 },\n+\t{ ICE_ETYPE_OL,\t\t12 },\n+\t{ ICE_VLAN_OFOS,\t14},\n+\t{ ICE_PPPOE,\t\t18 },\n+\t{ ICE_IPV6_OFOS,\t26 },\n+\t{ ICE_TCP_IL,\t\t66 },\n+\t{ ICE_PROTOCOL_LAST,\t0 },\n+};\n+\n+static const u8 dummy_pppoe_ipv6_tcp_packet[] = {\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x81, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n+\n+\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_OFOS 14 */\n+\n+\t0x11, 0x00, 0x00, 0x00, /* ICE_PPPOE 18 */\n+\t0x00, 0x2a,\n+\n+\t0x00, 0x57,\t\t/* PPP Link Layer 24 */\n+\n+\t0x60, 0x00, 0x00, 0x00, /* ICE_IPV6_OFOS 26 */\n+\t0x00, 0x14, 0x06, 0x00, /* Next header is TCP */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_TCP_IL 66 */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x50, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x00, 0x00,\t\t/* 2 bytes for 4 bytes alignment */\n+};\n+\n+static const\n+struct ice_dummy_pkt_offsets dummy_pppoe_packet_ipv6_udp_offsets[] = {\n+\t{ ICE_MAC_OFOS,\t\t0 },\n+\t{ ICE_ETYPE_OL,\t\t12 },\n+\t{ ICE_VLAN_OFOS,\t14},\n+\t{ ICE_PPPOE,\t\t18 },\n+\t{ ICE_IPV6_OFOS,\t26 },\n+\t{ ICE_UDP_ILOS,\t\t66 },\n+\t{ ICE_PROTOCOL_LAST,\t0 },\n+};\n+\n+static const u8 dummy_pppoe_ipv6_udp_packet[] = {\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x81, 0x00,\t\t/* ICE_ETYPE_OL 12 */\n+\n+\t0x00, 0x00, 0x88, 0x64, /* ICE_VLAN_OFOS 14 */\n+\n+\t0x11, 0x00, 0x00, 0x00, /* ICE_PPPOE 18 */\n+\t0x00, 0x2a,\n+\n+\t0x00, 0x57,\t\t/* PPP Link Layer 24 */\n+\n+\t0x60, 0x00, 0x00, 0x00, /* ICE_IPV6_OFOS 26 */\n+\t0x00, 0x08, 0x11, 0x00, /* Next header UDP*/\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00,\n+\n+\t0x00, 0x00, 0x00, 0x00, /* ICE_UDP_ILOS 66 */\n+\t0x00, 0x08, 0x00, 0x00,\n+\n+\t0x00, 0x00,\t\t/* 2 bytes for 4 bytes alignment */\n+};\n+\n static const struct ice_dummy_pkt_offsets dummy_ipv4_esp_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_IPV4_OFOS,\t14 },\n@@ -6123,6 +6305,31 @@ ice_get_compat_fv_bitmap(struct ice_hw *hw, struct ice_adv_rule_info *rinfo,\n \tcase ICE_SW_TUN_PPPOE:\n \t\tprof_type = ICE_PROF_TUN_PPPOE;\n \t\tbreak;\n+\tcase ICE_SW_TUN_PPPOE_PAY:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_PAY, bm);\n+\t\treturn;\n+\tcase ICE_SW_TUN_PPPOE_IPV4:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV4_OTHER, bm);\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV4_UDP, bm);\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV4_TCP, bm);\n+\t\treturn;\n+\tcase ICE_SW_TUN_PPPOE_IPV4_TCP:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV4_TCP, bm);\n+\t\treturn;\n+\tcase ICE_SW_TUN_PPPOE_IPV4_UDP:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV4_UDP, bm);\n+\t\treturn;\n+\tcase ICE_SW_TUN_PPPOE_IPV6:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV6_OTHER, bm);\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV6_UDP, bm);\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV6_TCP, bm);\n+\t\treturn;\n+\tcase ICE_SW_TUN_PPPOE_IPV6_TCP:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV6_TCP, bm);\n+\t\treturn;\n+\tcase ICE_SW_TUN_PPPOE_IPV6_UDP:\n+\t\tice_set_bit(ICE_PROFID_PPPOE_IPV6_UDP, bm);\n+\t\treturn;\n \tcase ICE_SW_TUN_PROFID_IPV6_ESP:\n \tcase ICE_SW_TUN_IPV6_ESP:\n \t\tice_set_bit(ICE_PROFID_IPV6_ESP, bm);\n@@ -6527,13 +6734,56 @@ ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\t*pkt_len = sizeof(dummy_pppoe_ipv6_packet);\n \t\t*offsets = dummy_pppoe_packet_offsets;\n \t\treturn;\n-\t} else if (tun_type == ICE_SW_TUN_PPPOE) {\n+\t} else if (tun_type == ICE_SW_TUN_PPPOE ||\n+\t\ttun_type == ICE_SW_TUN_PPPOE_PAY) {\n \t\t*pkt = dummy_pppoe_ipv4_packet;\n \t\t*pkt_len = sizeof(dummy_pppoe_ipv4_packet);\n \t\t*offsets = dummy_pppoe_packet_offsets;\n \t\treturn;\n \t}\n \n+\tif (tun_type == ICE_SW_TUN_PPPOE_IPV4) {\n+\t\t*pkt = dummy_pppoe_ipv4_packet;\n+\t\t*pkt_len = sizeof(dummy_pppoe_ipv4_packet);\n+\t\t*offsets = dummy_pppoe_packet_ipv4_offsets;\n+\t\treturn;\n+\t}\n+\n+\tif (tun_type == ICE_SW_TUN_PPPOE_IPV4_TCP) {\n+\t\t*pkt = dummy_pppoe_ipv4_tcp_packet;\n+\t\t*pkt_len = sizeof(dummy_pppoe_ipv4_tcp_packet);\n+\t\t*offsets = dummy_pppoe_ipv4_tcp_packet_offsets;\n+\t\treturn;\n+\t}\n+\n+\tif (tun_type == ICE_SW_TUN_PPPOE_IPV4_UDP) {\n+\t\t*pkt = dummy_pppoe_ipv4_udp_packet;\n+\t\t*pkt_len = sizeof(dummy_pppoe_ipv4_udp_packet);\n+\t\t*offsets = dummy_pppoe_ipv4_udp_packet_offsets;\n+\t\treturn;\n+\t}\n+\n+\tif (tun_type == ICE_SW_TUN_PPPOE_IPV6) {\n+\t\t*pkt = dummy_pppoe_ipv6_packet;\n+\t\t*pkt_len = sizeof(dummy_pppoe_ipv6_packet);\n+\t\t*offsets = dummy_pppoe_packet_ipv6_offsets;\n+\t\treturn;\n+\t}\n+\n+\tif (tun_type == ICE_SW_TUN_PPPOE_IPV6_TCP) {\n+\t\t*pkt = dummy_pppoe_ipv6_tcp_packet;\n+\t\t*pkt_len = sizeof(dummy_pppoe_ipv6_tcp_packet);\n+\t\t*offsets = dummy_pppoe_packet_ipv6_tcp_offsets;\n+\t\treturn;\n+\t}\n+\n+\tif (tun_type == ICE_SW_TUN_PPPOE_IPV6_UDP) {\n+\t\t*pkt = dummy_pppoe_ipv6_udp_packet;\n+\t\t*pkt_len = sizeof(dummy_pppoe_ipv6_udp_packet);\n+\t\t*offsets = dummy_pppoe_packet_ipv6_udp_offsets;\n+\t\treturn;\n+\t}\n+\n \tif (tun_type == ICE_ALL_TUNNELS) {\n \t\t*pkt = dummy_gre_udp_packet;\n \t\t*pkt_len = sizeof(dummy_gre_udp_packet);\ndiff --git a/drivers/net/ice/base/ice_switch.h b/drivers/net/ice/base/ice_switch.h\nindex 8c7e98bfa..bd634f98f 100644\n--- a/drivers/net/ice/base/ice_switch.h\n+++ b/drivers/net/ice/base/ice_switch.h\n@@ -16,6 +16,13 @@\n #define ICE_FLTR_TX_RX (ICE_FLTR_RX | ICE_FLTR_TX)\n \n /* Switch Profile IDs for Profile related switch rules */\n+#define ICE_PROFID_PPPOE_PAY\t\t34\n+#define ICE_PROFID_PPPOE_IPV4_TCP\t35\n+#define ICE_PROFID_PPPOE_IPV4_UDP\t36\n+#define ICE_PROFID_PPPOE_IPV4_OTHER\t37\n+#define ICE_PROFID_PPPOE_IPV6_TCP\t38\n+#define ICE_PROFID_PPPOE_IPV6_UDP\t39\n+#define ICE_PROFID_PPPOE_IPV6_OTHER\t40\n #define ICE_PROFID_IPV4_ESP\t\t71\n #define ICE_PROFID_IPV6_ESP\t\t72\n #define ICE_PROFID_IPV4_AH\t\t73\n", "prefixes": [ "v2", "30/52" ] }{ "id": 71037, "url": "