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 156EE454EF; Tue, 25 Jun 2024 13:29:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2271B4334C; Tue, 25 Jun 2024 13:20:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 99C8442F7D for ; Tue, 25 Jun 2024 13:18:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314290; x=1750850290; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kK+YhYd6or+3uh2lheQAwDtCsPAWhZJRH6u0up/qENA=; b=NnWEjuvHzKg5w8DaZhLOM31EBZ8VVBL/c+S3ftfwqe8oLnj5Z3Sb51ya pYTDzP7bh7mPFrZqKwR2naCey/V8dSgCEp1fkIvBSNR/DXvhR+FfEo4z8 AdyK9MX+i2xCbN9r9hLsn1Y0X3Lekmr8P/Z7q5m8s9/yCCSwLrFcuYaAI oiJ32fxGhAoLoomq9zzKhJh0UDeKJZ6jz9rmC8Why1KYjZMQI0Nr/tPQW zVjf9qt04MRIWen/yJv9tep8Gr2mzQEc6BMCd48/1W1q3ddybcUkfwr26 DSAc7pFkTxDdEaJSe0rRK1tlJqiBIw8YzVMDmgUQx36IHETFClL/RQeBB A==; X-CSE-ConnectionGUID: SoyeHRbVSw+KVeJghBx+sQ== X-CSE-MsgGUID: A6BA0lvkQUidEY4J5W9l1A== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080645" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080645" 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:18:10 -0700 X-CSE-ConnectionGUID: y8y0k8DaR16q6k1P6Ahndg== X-CSE-MsgGUID: MLKS9g60TTqxBNNRd3/OaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719767" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:18:10 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Przemek Kitszel , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 118/129] net/ice/base: update boost struct for traffic types Date: Tue, 25 Jun 2024 12:14:03 +0100 Message-ID: <068d9e9b2c593e45decb7500963e7e8efae43caa.1719313664.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: Przemek Kitszel Update boost struc to support both udp and vlan based on union. Signed-off-by: Przemek Kitszel Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_flex_type.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_flex_type.h b/drivers/net/ice/base/ice_flex_type.h index f563ce7bce..45cdce9b0a 100644 --- a/drivers/net/ice/base/ice_flex_type.h +++ b/drivers/net/ice/base/ice_flex_type.h @@ -382,8 +382,16 @@ struct ice_sw_fv_list_entry { struct ice_boost_key_value { #define ICE_BOOST_REMAINING_HV_KEY 15 u8 remaining_hv_key[ICE_BOOST_REMAINING_HV_KEY]; - __le16 hv_dst_port_key; - __le16 hv_src_port_key; + union { + struct { + __le16 hv_dst_port_key; + __le16 hv_src_port_key; + } /* udp_tunnel */; + struct { + __le16 hv_vlan_id_key; + __le16 hv_etype_key; + } vlan; + }; u8 tcam_search_key; }; #pragma pack() -- 2.43.0