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 7532E45501; Wed, 26 Jun 2024 14:05:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F2E44348F; Wed, 26 Jun 2024 13:57:03 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 2170942E95 for ; Wed, 26 Jun 2024 13:45:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402331; x=1750938331; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OF93LNaxeoDLB4kKA072pgrGi5xn98GzerIK5f0hFhE=; b=P6twiJ83EnyAtPL8H+WQYZORPWECR8JdEhJeTpgREdU8XlBDbwn9C07C h3q38AXDJeCJLhdaflazT6J6boV/QSDFs4ssYzqcfzUaszXfCRnGedHmX G5aY+GmuBkh9Zaw5h+FuD75VXItiY8Cokl4vh4FGkgrW4S917IEHC5UNj 0LNkIsxeA/1ybCy/jQAmLk915+IHv5Q8hm2Q/Nh8QmQJmwLNO2klyb/km JZcG18d7zjFB4GVGOzxSR3euX77D0uIr6YCzmWtPnYCFrR7eP2L9rFbTb G+iMp4CBnH6w4BYhhXXeweR/ZfKTY5ds7pK8WTRlrprIfpUaOzFTgUADp A==; X-CSE-ConnectionGUID: AAQJN/u3SammJhnA/3Cmfg== X-CSE-MsgGUID: WPp8F/X9RMq2aRNnJNYASQ== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979573" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979573" 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:30 -0700 X-CSE-ConnectionGUID: BbdgOMcqQlCuSwSMGrsgfQ== X-CSE-MsgGUID: motYa1UiRr2VVljltag2vw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43874433" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:45:30 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Przemek Kitszel , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 088/103] net/ice/base: update boost struct for traffic types Date: Wed, 26 Jun 2024 12:42:16 +0100 Message-ID: <1bb4db04de6a4e7e00446d5767d513674c1581f4.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: 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 c83479d6fa..52320d86dc 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