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 DF6A64404F; Wed, 12 Jun 2024 17:25:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7D336432C4; Wed, 12 Jun 2024 17:06:57 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 4232C43295 for ; Wed, 12 Jun 2024 17:06:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204815; x=1749740815; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=csxJC1IoRGSiyY0IPU97SVTwWO3HmdOou5JBVTpaQZs=; b=WxkAU4D6570Xxz5r5X/rnNqgT9/dTvCXmzQH3TMPi1NNqFj89bRoua7A f7Wb5DRYdXr7nPk5uPltZnDzfiMQjR7pfpGwvYzDpQ5mSMVyJNYfhKlAi UvWNaG8TX+qMXs+S8FGmyYNTs1W4Uq+GkBi2ubmTMzGDpoCQR0JVJJGZe gse7PnBS3BTkqwzBSi697Mch7gLjWVwEux2AuK9IHd1/vgGwVbAjaOJvn iqXWFhrGe893C2vkEZH5Rz8g3jcwlJYF92dtt6Fz8P1x8aq02lJhWLAVo xgJGAYTE7xhDVDG4yq+QL5tzUC2dxNHxGvC8iVaahVpELbdHQPiOBaumN Q==; X-CSE-ConnectionGUID: w2KxGJneQTyChNeQVjZEBQ== X-CSE-MsgGUID: I9oAWVXJQ7Go+Pz09Mv6mQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32460098" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32460098" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:06:54 -0700 X-CSE-ConnectionGUID: E1VgsbkrRkqDvMvprNbjQg== X-CSE-MsgGUID: RPboYNzNSa2lA0IEnVWt5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925978" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:06:53 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: ian.stokes@intel.com, bruce.richardson@intel.com, Wojciech Drewek Subject: [PATCH v2 129/148] net/ice/base: add L2TPv3 support for adv rules Date: Wed, 12 Jun 2024 16:02:03 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 54ed018860..b0128eefca 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