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 B877F1308A for ; Tue, 27 Jun 2023 17:35:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEFDDC433C0; Tue, 27 Jun 2023 17:35:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687887340; bh=37vv2M66Jc+vhvC8puCceXeb4cifT0XKdasV0EodIZQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ib9AcnJKqkYqwSJ2/YsMMAJAQjezfBeh57jMKS8T0cuhZcGxWbQXZtqxwjQZrsqPQ UydGRJX+M6R00HQCP5pMZgySKEeBPbyXq0zUnvuV0Hg2am27FqjdF9rBbk52+p463M Rj3Y7ZdVu/mHJUW7IPUbcYpBSlJBJhiQPTxGnDu9BDW3rgftFAaPQsMXFJo9KpvzR/ y80o/1HgULC5H6sPTyfZD53mrAg0vSDDOZgRdjZYuXl7oS1jKvRvW7oPRJd1kpuAGj 7A1brHrFdn7zarieDLXI4kGZO0Or6BS5rWav4tcHQl3zmPO9X9bP+sM4Hz/o3KGGz1 gJe3ram2ySQJw== Date: Tue, 27 Jun 2023 10:35:39 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Saeed Mahameed , Saeed Mahameed , "David S. Miller" , Paolo Abeni , Eric Dumazet , netdev@vger.kernel.org, Tariq Toukan , Shay Drory , Moshe Shemesh Subject: Re: [net-next 14/15] net/mlx5: Light probe local SFs Message-ID: <20230627103539.7968ce04@kernel.org> In-Reply-To: References: <20230615123325.421ec9aa@kernel.org> <20230622093523.18993f44@kernel.org> <20230623082108.7a4973cc@kernel.org> <20230624134703.10ec915f@kernel.org> <20230627082429.36100040@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 Tue, 27 Jun 2023 19:16:42 +0200 Jiri Pirko wrote: > Hmm, how that could be generated by kernel if it should be really > unique? Consider an example scenario where you have 2 DPUS (smartnic > with CPUs) plugged into a single host. > > 1) On DPU 1 you do: > $ sudo devlink port add pci/0000:08:00.0 flavour pcisf pfnum 1 sfnum 103 > pci/0000:08:00.0/32770: type eth netdev eth10 flavour pcisf controller 1 pfnum 0 sfnum 103 splittable false > function: > hw_addr 00:00:00:00:00:00 state inactive opstate detached uuid XXX > > 2) On DPU 2 you do: > $ sudo devlink port add pci/0000:08:00.0 flavour pcisf pfnum 1 sfnum 103 > pci/0000:08:00.0/32770: type eth netdev eth10 flavour pcisf controller 1 pfnum 0 sfnum 103 splittable false > function: > hw_addr 00:00:00:00:00:00 state inactive opstate detached uuid XXX > > There is no way to sync between kernel running in the DPUs. > Both SFs in this example would be externaly created on the host. The > host will see 2 devices with the same uuid XXX, collision. https://en.wikipedia.org/wiki/Universally_unique_identifier tl;dr the whole point of UUIDs is that collisions do not happen