🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24775

Re: [PATCH net-next V2 4/5] net/mlx5e: Register eswitch-manager VF/SF self-port with switch-id

#24775
From: Simon Horman
Date: Mon, 30 Nov 2026 19:52
23 lines
9044 bytes
On Fri, Nov 20, 2026 at 09:59:57AM +0200, Tariq Toukan wrote:
> From: Shay Drory <shayd@nvidia.com>
> 
> A non-PF function's self-port (its own uplink netdev) was always
> registered with DEVLINK_PORT_FLAVOUR_VIRTUAL, which doesn't carries
> switch_id. Consequently a function that acts as an eswitch manager - a
> VF (or SF) running its own nested eswitch - exposed no phys_switch_id on
> its uplink netdev, so it could not be grouped with the representors it
> manages.
> 
> When the function is an eswitch manager, register its self-port with the
> switch_id taken from the system image guid. The uplink netdev is already
> bound to this devlink port, so phys_switch_id is derived by the core,
> and the managed representors - which stamp the same switch_id - group
> with it.
> 
> Signed-off-by: Shay Drory <shayd@nvidia.com>
> Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
> Reviewed-by: Mark Bloch <mbloch@nvidia.com>
> Signed-off-by: Tariq Toukan <tariqt@nvidia.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261130195259.GI804035@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374428-linux-kernel-netdev=dewy.ru
References: <20261120075959.2533702-1-tariqt@nvidia.com> <20261120075959.2533702-5-tariqt@nvidia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374428-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next V2 4/5] net/mlx5e: Register eswitch-manager
 VF/SF self-port with switch-id
Date: Mon, 30 Nov 2026 19:52:59 +0000
Organization: Usenet Network
Message-ID: <20261130195259.GI804035@horms.kernel.org>
References: <20261120075959.2533702-1-tariqt@nvidia.com>
 <20261120075959.2533702-5-tariqt@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1523015"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:IdZ5J6jbkI6Mvuw8mnDmH/kRJ9A= sha256:t25n1l2YxhwJT1KF7Xx35TEbDngJBR9Qg0kFFlKOjko=
	sha1:w6NSrJd2HG9YuD0T44PM/6q6lVM= sha256:LLN9yOGwc7YDyrLXPi328mNRzyYdeJ1stPvJGI/1y4w=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9A512126000; Mon, 30 Nov 2026 22:53:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id nkrSj5mMFuKz;
	Mon, 30 Nov 2026 22:53:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-374428-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id C10C9125FFC; Mon, 30 Nov 2026 22:53:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id BABE627EF0; Mon, 30 Nov 2026 19:53:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796068385;
	b=RgiWra7ftNa5pQzlSPXSxmvDGpG+GEXZLME67CBs2jf7iwyPTjxeJJ/XCJt0Koei7GFQ
	 4ldkdrkds6vDSOZG38BxPL9+hEMtamgpQnhw/nr6IAH8c0tI99vZT3T0oh/XgLid65/KF
	 Fi3BSgT8MSRRgLl7Pbau35NWkQhKDP160QVikH+DGk18x4jAmE4cwtSye7V1W1UG2aM3N
	 XeCTSPP1seFJIr+zvZABkVx7OAmnhxgGQSv7KlCcLzWMqy2D1fUn3qNgqhcQrlsliFXhr
	 thP8WlyIZ098FiwMRDJP1czJhaYg2J0+xBm6wDtc5MiNMfmRpFGw5lu7dwMqleskNGA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796068385;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=50r6xVMKlVyxugtTdz1jk2m1BsbBWZukwwSQp9A8fJs=;
	b=G+tNXF0ghga/0ryagpwK5f7tAGWvB+Vp9MAR0j9WXSaivMva6BTfbw4PoK1PjANuemIy
	 xsBL7JBvCYRznELDKlj4XKFGouo/mvM3TG/DWsYvdjbsiZzBtBvM9ze/QT4MRdPSAvIES
	 tLnzT/QA8eMocyyQ2ruCXjWKIAUeV7wMf+X+E1Qqm9T44GbSgz18lfPACkqm3/zp5pLGj
	 lfFTgkBrCxVrbxl4fs2icuDi/fMR49Ox2KqsMBTuxSp55iI2An2wTz2Q1Nd4BTpJH6FEP
	 D5VHDFMw/WPe7GNrxo+h5G6BQYWqSo/EV4PdbXD3M8yRFp3FM+hf48dYbwxArw0G5Ww==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IDLjTL7a;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 88D13606A331;
	Mon, 30 Nov 2026 19:53:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IDLjTL7a
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796068384;
	b=tViQJsSx0EPs6ALXh87/M3rjQyxw4rT0I7U7L4fDGI2loHgp3PMNnPCZR/aHQ19D7BXr
	 /A0FWJaekGROD0CGG5A6HERu3G9B/SrU5IZf3qkA3w8VGGsMUNtyJ+PGNu7Pd2Lk8IMya
	 1uj3WYBch4P+ZtR5STHGZP+bxAP3O3j/3aNmcj/HDgPzT6DTvi8DvlvNlClEEKK/kD2if
	 sP3mhYfGd6+u01JUyEZLId/imvl0rXWeH19Wg/THDbY/00VJv759BzIW9BlRQN9lvPyMV
	 qWxAm44JKTxgHl61ulGqfJiwZ2XJ58TtOAiJPhaCrhSe/XNuLphguoBStNAe9UJVOeg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796068384;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=50r6xVMKlVyxugtTdz1jk2m1BsbBWZukwwSQp9A8fJs=;
	b=E0QpVVLz8KFmgW7syhtUEbPdGwk7tn7ZzGa6OJV6gp5SE0jqVv+OAHnta9pT/TTqYEKO
	 WwafUnhee1xBsHR10o2JKiC4W7zPonWhfOEr5MS/B2BVTKcRfXRNzwBMCGQHZZBIDZDLI
	 inL5/9Q0xqhOO6vtd72zyY3J3qVuAo7S1C1AZeqZYIzfmHjugRuBBoX+E/e8jS/FTLCa7
	 5kiNXzA5bPa5N5Ewb3aRN7WcU+wGSq1nVJakA9wLn9kobX/Ek6CPnkztuDzmXg4T6J/m8
	 9zdhJiLhXoTYRdL6eKuSAm0kmhdefFtWTMFkyZGzmHjLjP1gz2fYBZtqHQuU7J4JlnQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IDLjTL7a;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A42F4606A325;
	Mon, 30 Nov 2026 19:53:04 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D82C1F000C1;
	Mon, 30 Nov 2026 19:53:01 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796068384;
	bh=50r6xVMKlVyxugtTdz1jk2m1BsbBWZukwwSQp9A8fJs=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=IDLjTL7ah63b4PU68d5KOKlaVIpXWiBKV8LzuVBCwavAEHIG6zFF5yL4cIm6lAJB3
	 liwcvVnJJeL27Zje4qmqm63mcepwAdfy3QW4wnLQV77Ql9EtrvrpCYR+K06MsSUfnK
	 GxS1c3CrJTC4kCVOp9iyOxdMF2WDpt+XCg8/h/XoIRu7hK63zpE9tApVB1KSua5ilc
	 qBgh0DolTPDW530ODHpatiLlUXTb2W8n5PTHpPP+1AHXS+O8fvR5HA36HbqSJOcwo3
	 eDWiJYYElegsaLiyqR7wulxF+ZlksY2MlAHw2kD7jY+k2ZT7LB+OzKfy6AlCfy3m4+
	 p7dU/aVIHIfFQ==
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org,
	Paolo Abeni <pabeni@redhat.com>,
	Akiva Goldberger <agoldberger@nvidia.com>,
	Gal Pressman <gal@nvidia.com>, Jason Gunthorpe <jgg@ziepe.ca>,
	Leon Romanovsky <leon@kernel.org>, linux-rdma@vger.kernel.org,
	Mark Bloch <mbloch@nvidia.com>, Moshe Shemesh <moshe@nvidia.com>,
	Or Har-Toov <ohartoov@nvidia.com>,
	Saeed Mahameed <saeedm@nvidia.com>, Shay Drory <shayd@nvidia.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261120075959.2533702-5-tariqt@nvidia.com>