🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25785

[PATCH net 0/3] ice, devlink: fixes needed for XLVF

#25785
From: Przemek Kitszel
Date: Wed, 02 Dec 2026 12:48
44 lines
11082 bytes
These are fixes for problems that are already there upstream, found
while working on the XLVF series for ice and iavf (more than 16 queue
pairs for a VF) [1]. XLVF builds on top of them, so I'm sending them
for net first.

Patch 1 fixes the queue count passed to the FW when ice moves VF queues
between ports of a bond: only the queues with a valid TEID are filled
in, but the command got the number of all of them. Reported by Sashiko
on XLVF v7.

Patch 2 takes vf->cfg_lock while ice changes the MSI-X vector count of
a VF, which could race with a VF reset started by the PF and oops.
Reported by Petr on XLVF v7, XLVF also extends this path.

Patch 3 makes the devlink dev messages fit any number of nested devlink
instances. ice already nests one for each subfunction in the devlink of
its PF, and XLVF will nest the VF devlinks there too.

Known, not addressed here, as XLVF does not depend on them: the MSI-X
change remaps the vectors of the other inactive VFs without their
vf->cfg_lock, and its fallback to the old vector count, after a failed
VSI rebuild, can fail too.

[1] https://lore.kernel.org/netdev/20261121230123.316391-1-przemyslaw.kitszel@intel.com

Przemek Kitszel (3):
  ice: move only the valid VF queues on LAG reclaim and reset rebuild
  ice: lock VF config while changing its MSI-X vector count
  devlink: make room for many nested instances in a dev message

 Documentation/netlink/specs/devlink.yaml   |  1 +
 net/devlink/devl_internal.h                |  2 +
 net/devlink/netlink_gen.h                  |  1 +
 drivers/net/ethernet/intel/ice/ice_lag.c   |  4 +-
 drivers/net/ethernet/intel/ice/ice_sriov.c |  7 ++++
 net/devlink/core.c                         | 13 ++++++
 net/devlink/dev.c                          | 48 +++++++++++++++++++---
 net/devlink/netlink.c                      | 14 ++++++-
 net/devlink/netlink_gen.c                  |  1 +
 9 files changed, 82 insertions(+), 9 deletions(-)

-- 
2.51.1
Technical Details
Message-ID: <20261202124956.18277-1-przemyslaw.kitszel@intel.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375786-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375786-linux-kernel-netdev=dewy.ru
From: przemyslaw.kitszel@intel.com (Przemek Kitszel)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/3] ice, devlink: fixes needed for XLVF
Date: Wed,  2 Dec 2026 13:48:00 +0100
Organization: Usenet Network
Message-ID: <20261202124956.18277-1-przemyslaw.kitszel@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1972683"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:e6/fTEkq7B2dN+IJE8RaYyy+cD4= sha256:n6rdfgOvs6uIAenQmZeUUfxN6rwH3ClJPjwZXeX7tmc=
	sha1:VgIzKd2jbcuVWLJ6X0NtgDgazpY= sha256:EbTRj84D/+MvaQX7EuLvjtKWW+D9Eyd5G3aKLj3pp1Y=
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 796D611763A; Wed,  2 Dec 2026 15:50:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=intel.com
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 L8OM7pxlzUVw;
	Wed,  2 Dec 2026 15:50:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375786-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 7414C11762A; Wed,  2 Dec 2026 15:50:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 9C11A601B65; Wed,  2 Dec 2026 12:50:09 +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=1796215808;
	b=2jwy1U2RSgzmdINVfGwtUc//v7GW2D4FkusYC0h0MnCePvbEdo485WzDL5veArZtbBwN
	 MpSkrdAKdTJGPbakQLvDscByGkf7ueycCBWj0sDm//7GuEAe+m0tOaUI6qyjA8e5Ta5MX
	 +nPiewcPsNUKK08idnBeb7H2MObfZQQF4FTydj4IG1fRqcwxRRSyE3J19FmAcG05BmQ1n
	 QGkyLOc7NZk38fw8H2Ef2LmCpBfEnr3Qa57P4PRpyJHiBAc4u0iFRI9KOr1Oh+Nv8xM/F
	 o8uQC0Zx86BGsT1mrfSAuYvp9xUMdFEXJDP22HnDe7Ww6b2vAXciHLg2ucx1aa1zr9w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796215808;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
	 X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV:
	 Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:
	 Received:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=JYLpKOxT0ey2KKfs26h7wfZttGKN79iHuwCkr2eCZqo=;
	b=wqL34OaDSXCHAESuxpMJXwfsA/O7sdyoiOOml838+d1Nunt0V/dCAjuRPU8t3pfIRAZ2
	 XUAyuH7fp1YS3EdSOCFY8GU5HAQdnf4GYctS0Qx8spxgGFk+RJ1xHBh572RVxJHcO2RA4
	 6SSa73Li0g63A9pjU99UhKdmUpdF50XtKhSIrHCGGsr86FoxvIu910hYWcjFFpGJwp/i+
	 7pVtK2iq4bw94jREFIoXPOk8QfxOyh/RhESy3N538z0wAioY3nOH8qO9/woAwx66CXQNN
	 uue2+gf/Px6om5gW9lqslH7CTWm7x2LQiQEhgIed8UAO1+xwEYHxxf2jvzam2v2RXQQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Di0+OQqH;
	dmarc=pass header.from=intel.com;
	spf=pass smtp.mailfrom=intel.com;
	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 4E256606A335;
	Wed,  2 Dec 2026 12:50:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Di0+OQqH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.12
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796215807;
	b=AH5RkWdy5ihHQ0DwJHWNSQJDuG9NIAFJ/cItWc86RhLZkoukC2Q3gF4eqGkdy2GF6vZb
	 IcOwnhQ0VmIYK0fOHWekMf9VL6dd+oQ5OplrHlCk2m9YEUHFv4GhnXgf+KtksIJsFYUji
	 +B4Q4Y39WhMg6nrn47d6KOrI7Q3d1OA5AemsdrPxAYE2EIC4tJyKYRL7+IlnGu/eN5leE
	 IwPRSQ4fv+fn34/Ar+F+GQQEXILsmwx0RPs/i9XAWdHlK2wXz6RXIhxOCSpd/Iy+dccML
	 nXHIp+kY3HjpGYY9GMMdxsdn6sO3WF2cGF8cpoUvSUHxrd2nCfiq9h0A36cry87TK0A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796215807;
	h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:
	 X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID:
	 X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:From:To:Cc:
	 Subject:Date:Message-ID:X-Mailer:MIME-Version:
	 Content-Transfer-Encoding;
	bh=JYLpKOxT0ey2KKfs26h7wfZttGKN79iHuwCkr2eCZqo=;
	b=ik4LWSIIgoyC6kGbAx8c0i6RegA4hYRx2gKHtPPOvNJK5qatPMHKiOewronPncjwuA2u
	 AHlyiaoHaWXyQidVek/5CzW9+5OGi51UVIpST0R1KcEBP++4Wku7JwQL+iPaUqGe4RwNp
	 iQ502xLg+5fPEo24GxR8pdBifTonfs7gBz8RtX8bFpOaoUy5PX4Luw/Kh/33mGjuND0Z6
	 NUwXG/GxXZZeap2FGA2znjLC8qP5q+H+jvzrj6MBQUkCYNZDzYG2aVYoNrqX4wAmF+w+d
	 EJk55m1b8N08hH6LqkvONS2C4q1Gi2sZsHuOyjpHXhDesuGmdXkdV3qWND3AVDksYBQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=intel.com;
	spf=pass smtp.mailfrom=intel.com;
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Di0+OQqH;
	arc=none smtp.remote-ip=198.175.65.12
X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06766606A323
	for <netdev@vger.kernel.org>; Wed,  2 Dec 2026 12:50:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 06766606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
  t=1796215807; x=1827751807;
  h=from:to:cc:subject:date:message-id:mime-version:
   content-transfer-encoding;
  bh=JYLpKOxT0ey2KKfs26h7wfZttGKN79iHuwCkr2eCZqo=;
  b=Di0+OQqHJ9+C2m+Q2Zh5V1zK3gULqsa/sH3chGTP7DRkx8BcKWQdQLh9
   Yjeyaur0wOuQsPx83n+/8N8qoYrlWodW+A+Pyds8NrvOVG7pVPFDlaEBu
   jHnXLThOGsw08vNqaJthcd/0y2g/2IKYR2rHwBn6WC2sE2gSvQWu9Hf3D
   1JFL2FhGZSVfWyUnZvFpnWvwZsb1PvWqMhBP90h5GCtQGsy6TKHQ7SMlQ
   1e3vk6p/mDV0NKm8M/hALHqhozDG9P9362XZmnBKgTDg/8hiimS2KND7c
   mpl34HxjXr2OtPcCKxitH47WOnYEvMVZu1WZyYFlMcYL4lgU4A2TlPzdv
   w==;
X-CSE-ConnectionGUID: bEG4PWhSQ6uXNAuMB1nRBw==
X-CSE-MsgGUID: U245eQGfSFCqnrhwhiU5RQ==
X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5052194"
X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; 
   d="scan'208";a="5052194"
X-Received: from fmviesa012.fm.intel.com ([10.60.135.152])
  by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 04:50:07 -0800
X-CSE-ConnectionGUID: ZEEQevqiQoqy6iCd1dPEew==
X-CSE-MsgGUID: cCVRwXRMQLObpz7vV35VFg==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; 
   d="scan'208";a="15168088"
X-Received: from irvmail002.ir.intel.com ([10.43.11.120])
  by fmviesa012.fm.intel.com with ESMTP; 02 Dec 2026 04:50:04 -0800
X-Received: from pkitszel-desk.tendawifi.com (unknown [10.245.245.159])
	by irvmail002.ir.intel.com (Postfix) with ESMTP id 118102FC50;
	Wed,  2 Dec 2026 12:50:01 +0000 (GMT)
X-Cc: intel-wired-lan@lists.osuosl.org,
	anthony.l.nguyen@intel.com,
	davem@davemloft.net,
	edumazet@kernel.org,
	kuba@kernel.org,
	horms@kernel.org,
	andrew+netdev@lunn.ch,
	Petr Oros <poros@redhat.com>,
	Przemek Kitszel <przemyslaw.kitszel@intel.com>
X-Mailer: git-send-email 2.51.1
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