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 7F419454AC; Wed, 19 Jun 2024 17:42:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CB8A402E6; Wed, 19 Jun 2024 17:42:04 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id A42BF402D3 for ; Wed, 19 Jun 2024 17:42:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718811723; x=1750347723; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=0BnQnl+9SFf1Q92ofUCSLFIUcJP+zOPpYSaNQiYNsHE=; b=Vam90zRdonLYJVc/YGA8Q63JdufNcwHa8wlgcDu+nETPHA26QUqTcHOK QCH5l3GrJxkCMOWMP00kMABsusplOBHtpZyc7FMyjwsakCBAuY9Zp4CxF StuVzsLOeDfSBNPGEWjlPeYvLac35evQ5i5nbz2zw6sJzC1n1ttJXX1MP U5wSOF3XnvJE2HUV8AhzhAHtD5LcsLzGmdgWv9bBEZlvpDiWyJo0wEE0b YT4JM+iJnfkaSo+QTS78Ms4+9AR7AptDDtrECJLsC5q1Ii93dLAsRQ46X s3H1rwfZnUg1ErY2aamzDWf4JDCMReYjtdJFyaKeg1jXYxv9zTVkbyNem Q==; X-CSE-ConnectionGUID: CTihioDVQH6HSXEyEwaFlA== X-CSE-MsgGUID: 3on3QN5zTZScPBmTuZspJg== X-IronPort-AV: E=McAfee;i="6700,10204,11108"; a="15735727" X-IronPort-AV: E=Sophos;i="6.08,250,1712646000"; d="scan'208";a="15735727" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2024 08:42:01 -0700 X-CSE-ConnectionGUID: If7zcyy4RBSIijTfBKsl4w== X-CSE-MsgGUID: nnoxAg+jTWWj4pReJGB7Ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,250,1712646000"; d="scan'208";a="41851162" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa010.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Jun 2024 08:42:01 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 19 Jun 2024 08:42:01 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 19 Jun 2024 08:42:00 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 19 Jun 2024 08:42:00 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 19 Jun 2024 08:42:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+kOy4u96bGmfOdWFp2pk5zShZKloX2vg4i/NeSYDUQ8jbUjCyHAqvy1R5peISVhY1im5jrTd3UQs+0Bq0vI8l1uHIckqFw0zKjN0E4Hf0hGr2uwPAGLB8qRJL5eCSNElBv3ArbHULX0IT1saUG//Co0e2paZTHduZ671tSFQNTAkMQEMLkYeEDCubP2vI7KgRyF9AmCZ1UbeKowCfuDcBV1in8a0qEduI+ddUl7SDLC53Co9KN6KQA/voBZDUbe+/H7Jy+9TqFkQXHJi2zH0Beshvl8RuLvk/fNnChjbYBbOwo6Nsrz6EpFtT7YzupvD/I4qp0umKDcr6QZEGhWjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rQFaWvRqBtVxMrmYdbAYo27S5x+3LDh6tZ15zerGZME=; b=HchCtJN9DcYcW/wIpvl5ECAldZdNQNethIeE94rlkJzqFYByKV+bPNXjnSwv5lYITfNYTmqYl8j5tR1WdofkTFQSomHDVOoiQcZd7yQDEazD8Pe7C1jtXRZIopqtDdV7GzCIFPtb43LGakh+mu66tJQxxgMwbmVIQZfMYnQ5I8OwX5nQppZ8YTPwmePFgKF8nZwAkSKp5kaR0lJ+49Q0+R3N9RkJMp39V/gFqc0K/EfkyPqS010obp/5AfC5sztHI0ku9MxZkba7Gwlko4f3/Ovy5Y3kDKIKrjo4NX8alkPjwFQpBRgmcsQGYWUnmAUBnnrda/SAw4OkwDSkulV4Lg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by PH7PR11MB6331.namprd11.prod.outlook.com (2603:10b6:510:1fd::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 15:41:58 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%7]) with mapi id 15.20.7698.017; Wed, 19 Jun 2024 15:41:58 +0000 Date: Wed, 19 Jun 2024 16:41:52 +0100 From: Bruce Richardson To: Anatoly Burakov CC: , Ian Stokes , Przemek Kitszel Subject: Re: [PATCH v2 030/148] net/ice/base: limit PF RSS LUT to one VSI at time Message-ID: References: <20240430154014.1026-1-ian.stokes@intel.com> <7400feef525c239eeb497536d511d74390c82e72.1718204528.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <7400feef525c239eeb497536d511d74390c82e72.1718204528.git.anatoly.burakov@intel.com> X-ClientProxiedBy: DU2PR04CA0028.eurprd04.prod.outlook.com (2603:10a6:10:3b::33) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|PH7PR11MB6331:EE_ X-MS-Office365-Filtering-Correlation-Id: 64be6217-6f4b-4050-ea1a-08dc90765a9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|376011|1800799021; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?t6bFWNaOl+H0NLMqClDZ6ISUnzaSQADd9Ot7M4agw3AnZlppnjhX81L2CAUY?= =?us-ascii?Q?tEPRwyidFEb0Ye0hGGknlGnaXksz4Q4xFpimn7ABQ/5f2VQp3exvJ12eQzTF?= =?us-ascii?Q?qQA931fI0vraTKwO8BAygntumbIJYeKT8dHyD0s6qUKXAsY05Ql1ki+dlEKd?= =?us-ascii?Q?tbHLpTBV+PC3HQOhKKzFp+LTaWvN/A4fR/3ApOvARzLJngJ2djQVQyH+Sq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aReDZLMf4pT2ob2LIzIYWYaI86HN2DWmDO/lN?= =?us-ascii?Q?Hc5SVNV4GsWBrXaZfnyowl2lwzkMRz9YiJmmL+eMLPpAu4Yl6ojcmSH0X/Wf?= =?us-ascii?Q?HdPNbmON7gsu6axkJbMhzS/AzwFs7o/xNYV+GY+eCi0uoYEiBAlu4JDmKZoA?= =?us-ascii?Q?mLDnttT3WfrmgdR7tRHrJmGq7wXlKDUPzzUiNkrV4l6aXfPCUItengZmKYEJ?= =?us-ascii?Q?/VM=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(366013)(376011)(1800799021); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7IX8yh+Dk3w+Oc9CM7gPDCszzhAvaYYCEexHEAXXmGw+Ko6j5ACSGS2WpIL1?= =?us-ascii?Q?6VqjELe5/xpGuxQcKv5lbG3wKmiCuqtyXEghbeX5+RGHiQOeTzzV2CGG3r85?= =?us-ascii?Q?mEmUTwh6RxlvNPDJ416tSfravwfvoE/5mhlJt0vLZGaCSdajyI1756aTv5vt?= =?us-ascii?Q?EMumtr8Xk/3h7H70ZURyEnWTcPYOMISgLd7bK1Qg2cLGJV/Qs2YveaEan+8c?= =?us-ascii?Q?+vJortT8dBX4vKQAgDpwmGmqiYeqZZEgqLgg6dbDZDhw+7yZt3lZe5VOr7Gb?= =?us-ascii?Q?ZwiRsJCcE7i1pxnOTErjL7D9HGMr7Uu0rE6ojmzcpwqY4P6VcEr5el8HMt+x?= =?us-ascii?Q?ih+EkCq7p4UmzMGuPpdkY7HSJvmoFj+2GiQWMpbepMmNcfjZdoMma53LMKbH?= =?us-ascii?Q?WpohR5rIVPiTE5Au6ORIO1GilEJqfZhLGKwHdOjSkyJfS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uTeQhdmBGcLhu8EhTO64v3W/xRZyGY6QHvXWQF7lbmBiRuO+/IxeIMcjjVt?= =?us-ascii?Q?+GqLtHHBxqZGwl2wfkwaj7NPeurb8nqf1Db1Fsv6Ijj/iRnTQ17lHnup1TKs?= =?us-ascii?Q?IwjmIOTlF9wVSa0ueTX4+oB062zNaSwvaH2Dlq5om+q4BefKsDmsHcR4w9+L?= =?us-ascii?Q?MuasiXfY34eUwBgdod+/X3tblUFVjS94S+IRitfTmoFv6PYTSMHzaWLWNpqX?= =?us-ascii?Q?UYYTCoiya7YaFQdz4t5Aa6mPBXLzNVviqos1VzCpY7tjk7r48E+QwoxyFIuJ?= =?us-ascii?Q?0Q=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 64be6217-6f4b-4050-ea1a-08dc90765a9e X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 15:41:58.2943 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iT15QYmCJBeIb0zp88Qyk9kYANE1ahXZMspOdnTBHjsXK2GZbJ/+yAeEUkCvpFlyMsEWPqyI0g2DD0O1yjxl1QgSC2HTUV3hZa5ekdqV34s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6331 X-OriginatorOrg: intel.com 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 On Wed, Jun 12, 2024 at 04:00:24PM +0100, Anatoly Burakov wrote: > 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; > -- This is a one-line change, so can probably be merged into some other patch, rather than needing a whole commit on its own. /Bruce