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 4E95B4404F; Wed, 12 Jun 2024 17:10:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29A76427B9; Wed, 12 Jun 2024 17:04:08 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 77192427AA for ; Wed, 12 Jun 2024 17:04:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204647; x=1749740647; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1Up+hoRT5aA2/GDCvikjrl4wPvGGboyPVqYt7IQrIgs=; b=FOC4+WLaGXoC8UphvFSF+ApdqIiV/fHz7Zc7BINTyzCny637Mxg/WoqM 5R+NU5w828Fo9VDaAacbEln+9lec2qgoqmjaGi9VO5tJts+qyPxa72kY7 ISty6EaWHwvFJRyiDWvWDQEQvUmXI4JFiAc1OSTcp+NtsAeGnRXDsrn+8 oCD7aPZMiiGibB72Dze9IveI1J6x+Rdpd9Kewg1nErRHzxZIbOzZgPaXX lPmiVfbwxrYCd2VxX88Ke3oP/ITGEKWAK43J//kTekJGywqQghet2izGp 5qgkDxOUMTvwDBfuquGdhyamxE7C0F/lqOhkch32fHTjryJcx8hvmuTlQ A==; X-CSE-ConnectionGUID: nyHLI8qiS1u0GcoJJ5fiPg== X-CSE-MsgGUID: Jer4GSDxQZ2sZmEJYXCKjQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459315" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459315" 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:04:06 -0700 X-CSE-ConnectionGUID: 3lLyO+yqSiulazhcXJLXEQ== X-CSE-MsgGUID: LtZfzR7YQIeZg67K7QsMKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925050" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:04:05 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Przemek Kitszel Subject: [PATCH v2 030/148] net/ice/base: limit PF RSS LUT to one VSI at time Date: Wed, 12 Jun 2024 16:00:24 +0100 Message-ID: <7400feef525c239eeb497536d511d74390c82e72.1718204528.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 Allow only one VSI to alloc the PF RSS LUT. Shared part consists of just a new field, actual implementation will use `rss_locks` to serialize the access. Take advantage of the fact that VSI #0 is main VSI for PF, what is the default PF LUT holder, so zero-init of struct ice_hw sets it as designed. Signed-off-by: Przemek Kitszel Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h index 48f892bfd3..1e133bb1a6 100644 --- a/drivers/net/ice/base/ice_type.h +++ b/drivers/net/ice/base/ice_type.h @@ -1394,6 +1394,7 @@ struct ice_hw { ice_declare_bitmap(fdir_perfect_fltr, ICE_FLTR_PTYPE_MAX); struct ice_lock rss_locks; /* protect RSS configuration */ struct LIST_HEAD_TYPE rss_list_head; + u16 vsi_owning_pf_lut; /* SW IDX of VSI that acquired PF RSS LUT */ ice_declare_bitmap(hw_ptype, ICE_FLOW_PTYPE_MAX); u8 dvm_ena; u16 io_expander_handle; -- 2.43.0