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 F385745501; Wed, 26 Jun 2024 14:04:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DDE04347F; Wed, 26 Jun 2024 13:56:51 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 9480F42E95 for ; Wed, 26 Jun 2024 13:45:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402320; x=1750938320; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JbwRYZD8ouEPaHl779k9vHyr6XBQJU+95H83u3cg5FA=; b=ZiRW80HYOOJKY55HFxyGgJiYNqaYuRpjYndqrH8oeHBHecvhn6MH8AXh nFkKUNZTygfRDXKRdhEAUhknYI6BQWDhUMW+cK6nyH4jK6j4BL7KrIL1O myAE1KT8Jr/rQD4Wuzm0o16xh8nLaobc8wEYb0ICZvu4m6o4sPesaW+mo P5aVfOmob3kEoFaLGszz/UFnDwsNjFRgh+49LlMSb/rivSAph/8a/6Yrb kgNNLCYIf535vimB/TtT/poYNe+npW7h5eHUyzb/vKNlDXt5YPBcmvxIM +fWc7E0cr9M2sgsKTD/46+7if7wmLkb0wGeABdDrjfy5rvcNEq1AZltav g==; X-CSE-ConnectionGUID: w2b8u9RLQ9Sv94axwSboJg== X-CSE-MsgGUID: Ncej9rz3SqSfJSazpdNPfA== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979544" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979544" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:45:20 -0700 X-CSE-ConnectionGUID: ERjSUNPQT5ez1koJFq5V4g== X-CSE-MsgGUID: HgVfdJQgRaq6sJ5ZHj+pKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43874290" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:45:19 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Wojciech Drewek , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 082/103] net/ice/base: add L2TPv3 support for adv rules Date: Wed, 26 Jun 2024 12:42:10 +0100 Message-ID: <3b4e53aa9894b54d03f6fbec505f5179420cee06.1719401848.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 92405e1fdb..e8edcf5ba3 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -2033,6 +2033,7 @@ static const u8 dummy_ipv6_nat_pkt[] = { 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 }, @@ -2042,7 +2043,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, @@ -2058,6 +2060,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 }, @@ -2067,7 +2070,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