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 C64824404F; Wed, 12 Jun 2024 17:26:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7348F43316; Wed, 12 Jun 2024 17:07:21 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 76FB842F21 for ; Wed, 12 Jun 2024 17:07:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204829; x=1749740829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ecek0d6QC7+ocVYTVU2z9wPeybccNW81w1KR9ldpGDo=; b=Sfupcicw/2bLRVsuJt0z3GGjEUhLVvG1qdVlE5RGJUHWPHvMIMDmxGLz GoyK18aBpBh8VJz5X+ZMc9DawYow2DBQpSh/zzgL6/4KEPc4Fxhlmp7eI FLMVayiXTQ0bY0d6JCH1vrG3I8tYqDOHZrAQyffmmraTnTkQFEk43MSVy AaGjMrVyIWnBdXGPdq+l8KbxTKzZvJU2ocZfu0mVBqnbgGGGCHStVAMDM D57o/GNfQAlycPTlr6C1XPClsHCHcDnEYcuWvbRPxeQt07kAxIMh+pXl4 LW+yO1u/KLiaL3z80Hu3FwMO5o8bmruWSSJGcKMZb3ZEJATzX+VeweE/7 A==; X-CSE-ConnectionGUID: fxaeZ5fZT6WfecNbDSSIjw== X-CSE-MsgGUID: gwvuakgbQ/C6IZ3xg0d93A== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32460156" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32460156" 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:07:08 -0700 X-CSE-ConnectionGUID: IgS0d+40Qm2kIFoNCV0FGQ== X-CSE-MsgGUID: OH+eckMJQpaKi3rzvv4E/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39926048" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:07:07 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Przemek Kitszel Subject: [PATCH v2 138/148] net/ice/base: update boost struct for traffic types Date: Wed, 12 Jun 2024 16:02:12 +0100 Message-ID: <027daa4e28de05e99731caeaa7d6f56fd25a9c92.1718204529.git.anatoly.burakov@intel.com> 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 From: Ian Stokes 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