From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EB0124677F; Thu, 5 Feb 2026 02:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770257198; cv=none; b=HMde1tJnmaJNIids8LxIbyKTIsAQGUrdkFkeI2hlwa1Qpkit7EaooMbROIvctz8lgwAQld3y1A3bH5t78eMiWZe3awx+bXWtCOVlP6lcFXz95ZH8yISQMevNM3aButDPIi40T7oU0CYN2N0pIrCEqZZPAMArGI3emJ1f1fKPuRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770257198; c=relaxed/simple; bh=o5GScY0IkA5GPyQXBW8RFTDzDffTJNoOPmkAuFmcNts=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M2jyR6KVFMCUpJDPWxUWkmJgMAwUEscQxp9xrAMCQPfsMRxO4Ytycq8jW+og5VNWqbR1MQI0NnSbab6LFOw74gUkIhO3gmH0VFqD31RkPVhXLwwfeaXA2H/fyo9BOl9SKr2Bi7G4ioy5YdNZlCdsLQ8IQuCqaqLHHOmfeH6BFqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vCssFMyN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vCssFMyN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3836CC4CEF7; Thu, 5 Feb 2026 02:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770257198; bh=o5GScY0IkA5GPyQXBW8RFTDzDffTJNoOPmkAuFmcNts=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vCssFMyN/MYJ3pp6mRt9gbYbxLArpvEIqwxsJ6i0uEg3acxlxvUzLRo9a+35Ank6m 2IIVTHz+jdHtmaGVSxvYqlrwnLRDLddo6Xg1TYeJLeoCjg4w9+PPkzVQgH/EZKM0gu gGVgT2kHHIm9b1kioqALCaLeTaf2UlFtV+UOCAcYApGSrzPcgVdDGvrA+aszVwBGH5 7IFGaICnk22UIc0Z8J1ppxLU4ZqD89EfJOavzdPXaqX5cj5LwmIqaNDvR8tbHvuTyg NdmUkgWRWmbb31oqz9GBN2SMrHLX7p04OdA9j9ogl32MQQ2un16OVCRLtxP1beBXhp RU8qn5JytWVhg== Date: Wed, 4 Feb 2026 18:06:36 -0800 From: Jakub Kicinski To: Jiri Pirko Cc: Tariq Toukan , Eric Dumazet , Paolo Abeni , Andrew Lunn , "David S. Miller" , Donald Hunter , Jonathan Corbet , Saeed Mahameed , Leon Romanovsky , Mark Bloch , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-rdma@vger.kernel.org, Gal Pressman , Moshe Shemesh , Carolina Jubran , Cosmin Ratiu , Jiri Pirko , Randy Dunlap , Simon Horman , Krzysztof Kozlowski Subject: Re: [PATCH net-next V7 02/14] devlink: introduce shared devlink instance for PFs on same chip Message-ID: <20260204180636.7ae26cb6@kernel.org> In-Reply-To: References: <20260128112544.1661250-1-tariqt@nvidia.com> <20260128112544.1661250-3-tariqt@nvidia.com> <20260202194946.64555356@kernel.org> <20260203184200.216bb426@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 4 Feb 2026 08:15:21 +0100 Jiri Pirko wrote: > >> String gives drivers flexibility to use anything. Perhaps I'm missing > >> your point. Are you againts free-form or just string and buf+buf_len > >> would be fine? > > > >I was thinking binary buf+len is fine, and we shouldn't really expose > >this to user space in any shape or form (hence no concern about free > >form). > > How you imagine to name faux device then? I'm sensing that you want to > get rid of busname/devname handle for things like this and rely on some > randomly generated index. But the whole ecosystem is bases on > busname/devname handle. Any idea how to overcome that? Quoting myself form the other sub-thread: FWIW using devlink day to day, the bus/device is not at all useful as an identifier. Most of code touching devlink at Meta either matches on devlink dev info or assumes there's one instance on the system. IOW I think you over-estimate the value of the bus/dev in real life systems. And that's for instances that have a real bus/dev. Having a faux bus/dev is completely pointless, right? The only question is whether some code will straight up crash when seeing a device without bus/dev.