From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 233A4454EF; Tue, 25 Jun 2024 13:28:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43B4C43361; Tue, 25 Jun 2024 13:19:48 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id BDF264279C for ; Tue, 25 Jun 2024 13:17:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314277; x=1750850277; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9l/Ytb4HMOeJRBrkeqaEWFUjr/PNsSTMdrtlOYeuKzI=; b=j16bBMp2lwfZ1/LNCzKSD4PKfy4jdAzqXSfFKvVMLfkZ88l2zv6iP6u5 N+7LWpJeQENO5L03A0v/67ZlMcNN0uLe6IaIcM4MGIE8Er18ZY2V+nCGl x59YH6ZbGyeZTs+Gje4Juyl9y2Kq2GPS1LEmpwxDtXVsn25uZMu3tjmX1 Mg7Np+RRHroGMbGlg2yv1jhD6qDqGsHG1OaQtHeiNDVLOXITMXn/CqH+V 77j6TyJ7zx56Bl48Se+KIRSzP1F2GjMjNWAXN3SYGDgz013N4mhwSTObE lhfNN0gHDd6ABAzcTZn2LYdJ1VTB7nwJGzE9eWfq2Wb2Eg7plALlEDVM6 g==; X-CSE-ConnectionGUID: 9/u9zkAoTgWD5FAix6U1HQ== X-CSE-MsgGUID: oEVuHPy8QMyJjJ2PNrxlLA== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080619" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080619" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:17:56 -0700 X-CSE-ConnectionGUID: Z1VjPsj1SAyhKiCzGg2Qwg== X-CSE-MsgGUID: 38jVfv+wRlWWTjLLP5BGfA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719709" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:17:56 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Wojciech Drewek , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 109/129] net/ice/base: add L2TPv3 support for adv rules Date: Tue, 25 Jun 2024 12:13:54 +0100 Message-ID: <16e15e17f3682f56334e764bfa581a6a6558fbca.1719313663.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Wojciech Drewek This patch adds L2TPv3 dummy packets, data structures and defines. Signed-off-by: Wojciech Drewek Signed-off-by: Anatoly Burakov --- drivers/net/ice/base/ice_switch.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 8b5113d019..96ef26d535 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -1944,6 +1944,7 @@ static const u8 dummy_qinq_pppoe_ipv6_packet[] = { static const struct ice_dummy_pkt_offsets dummy_ipv4_l2tpv3_packet_offsets[] = { { ICE_MAC_OFOS, 0 }, + { ICE_ETYPE_OL, 12 }, { ICE_IPV4_OFOS, 14 }, { ICE_L2TPV3, 34 }, { ICE_PROTOCOL_LAST, 0 }, @@ -1953,7 +1954,8 @@ static const u8 dummy_ipv4_l2tpv3_pkt[] = { 0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x08, 0x00, + + 0x08, 0x00, /* ICE_ETYPE_OL 12 */ 0x45, 0x00, 0x00, 0x20, /* ICE_IPV4_IL 14 */ 0x00, 0x00, 0x40, 0x00, @@ -1969,6 +1971,7 @@ static const u8 dummy_ipv4_l2tpv3_pkt[] = { static const struct ice_dummy_pkt_offsets dummy_ipv6_l2tpv3_packet_offsets[] = { { ICE_MAC_OFOS, 0 }, + { ICE_ETYPE_OL, 12 }, { ICE_IPV6_OFOS, 14 }, { ICE_L2TPV3, 54 }, { ICE_PROTOCOL_LAST, 0 }, @@ -1978,7 +1981,8 @@ static const u8 dummy_ipv6_l2tpv3_pkt[] = { 0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x86, 0xDD, + + 0x86, 0xDD, /* ICE_ETYPE_OL 12 */ 0x60, 0x00, 0x00, 0x00, /* ICE_IPV6_IL 14 */ 0x00, 0x0c, 0x73, 0x40, -- 2.43.0