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 77814A93D for ; Thu, 24 Apr 2025 23:24:27 +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=1745537067; cv=none; b=JSkGDeYnAqYGBC+k+3+AoVRv6D9siiRfZeJCg8EQ8Uoenpf2aLz4DCrcMQlXHW1lslXX0HO5SYP0suBWxfplQhE68dB33noYWdGAeO0Ujr/gXEKSUZktTKht2R4Cp/RcNEpvNgn5lE8sSo6WZ5EZIBvrgEPcRX8qe3Ydv8AM+A0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745537067; c=relaxed/simple; bh=pK0wLhP8ZyLfNW4FV/7ualfAvEz8cXn1jh58QTIgfPQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LHLeCbvo+2myBw9bTRgtumzQv2NzM6qBrZTvqZCSVOOXivD9uYzj3cg2YHWBjuJ8aCPzy4sa+40gkDHWo5djY8TTXLC3qyVYDeNtkXOgh7r9DFmRzVdUWq747mnZv8ZHVVWP3OqDO/zl0IQAvoGrNgAUhyfCcCBCXfol6jzwjXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n7VTZGLT; 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="n7VTZGLT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4913AC4CEEA; Thu, 24 Apr 2025 23:24:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745537066; bh=pK0wLhP8ZyLfNW4FV/7ualfAvEz8cXn1jh58QTIgfPQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=n7VTZGLTV3cpbEprg2Crqgis7qm38x+HQOeZPhZhPMmjC09i1YUUvdHyeyqNzbPrF Wh3yP7PXtby8a7WHoPJH4hfklgIpYGOKUmLXhOt5teba+aIV31LP3S0o0rWrbIswnV 72sF0UfTxu8m8VRmZGRbMINN2UUzE0NCLUDCklnN1F6wkGQxPJOhSPNLX7fBfYWio0 kmrPgALgJxz/jdUsUANX3Eid2y+9rCG98ufC6ud3SV4lbWeScxR1O5f/SU4Si3+j+X f6ndJNTdGsQLkye2RV1YebSS2WxlMYoLec+TdKtvb9NH91AVPrHlTyIaO8FykaLUIW Q9sc8cz74xPYQ== Date: Thu, 24 Apr 2025 16:24:25 -0700 From: Jakub Kicinski To: Moshe Shemesh Cc: , "David S. Miller" , "Eric Dumazet" , Paolo Abeni , Simon Horman , Donald Hunter , Jiri Pirko , Jonathan Corbet , Andrew Lunn , Tariq Toukan , Saeed Mahameed , "Leon Romanovsky" , Mark Bloch Subject: Re: [RFC net-next 0/5] devlink: Add unique identifier to devlink port function Message-ID: <20250424162425.1c0b46d1@kernel.org> In-Reply-To: <1745416242-1162653-1-git-send-email-moshe@nvidia.com> References: <1745416242-1162653-1-git-send-email-moshe@nvidia.com> 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, 23 Apr 2025 16:50:37 +0300 Moshe Shemesh wrote: > A function unique identifier (UID) is a vendor defined string of > arbitrary length that universally identifies a function. The function > UID can be reported by device drivers via devlink dev info command. > > This patch set adds UID attribute to devlink port function that reports > the UID of the function that pertains to the devlink port. Code is also > added to mlx5 as the first user to implement this attribute. > > The main purpose of adding this attribute is to allow users to > unambiguously map between a function and the devlink port that manages > it, which might be on another host. > > For example, one can retrieve the UID of a function using the "devlink > dev info" command and then search for the same UID in the output of > "devlink port show" command. > > The "devlink dev info" support for UID of a function is added by a > separate patchset [1]. This patchset is submitted as an RFC to > illustrate the other side of the solution. > > Other existing identifiers such as serial_number or board.serial_number > are not good enough as they don't guarantee uniqueness per function. For > example, in a multi-host NIC all PFs report the same value. Makes sense, tho, could you please use UUID? Let's use industry standards when possible, not "arbitrary strings".