🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25787

[PATCH net 1/3] ice: move only the valid VF queues on LAG reclaim and reset rebuild

#25787
From: Przemek Kitszel
Date: Wed, 02 Dec 2026 12:48
41 lines
11383 bytes
ice_lag_reclaim_vf_tc() and ice_lag_move_vf_nodes_tc_sync() pass the
number of queue contexts to ice_aq_cfg_lan_txq(), but ice_lag_qbuf_recfg()
fills the buffer only with the queues that have a valid TEID and queue
handle, fewer when a VF uses fewer queues than it has. The command then
also gets the zeroed entries from the end of the buffer, which are not
queues of that VF. Pass the count of valid queues returned by
ice_lag_qbuf_recfg(), as ice_lag_move_vf_node_tc() already does.

Fixes: 1e0f9881ef79 ("ice: Flesh out implementation of support for SRIOV on bonded interface")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/netdev/179555745171.3135.7481127088391251734@kernel.org
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_lag.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_lag.c b/drivers/net/ethernet/intel/ice/ice_lag.c
index 08a17ded0ad5..ceac5e7ded2a 100644
--- a/drivers/net/ethernet/intel/ice/ice_lag.c
+++ b/drivers/net/ethernet/intel/ice/ice_lag.c
@@ -1277,7 +1277,7 @@ ice_lag_reclaim_vf_tc(struct ice_lag *lag, struct ice_hw *src_hw, u16 vsi_num,
 		goto reclaim_none;
 	}
 
-	if (ice_aq_cfg_lan_txq(hw, qbuf, qbuf_size, numq,
+	if (ice_aq_cfg_lan_txq(hw, qbuf, qbuf_size, valq,
 			       src_hw->port_info->lport, hw->port_info->lport,
 			       ICE_AQC_Q_CFG_TC_CHNG, NULL)) {
 		dev_warn(dev, "Failure to configure queues for LAG failover\n");
@@ -2495,7 +2495,7 @@ ice_lag_move_vf_nodes_tc_sync(struct ice_lag *lag, struct ice_hw *dest_hw,
 		goto sync_none;
 	}
 
-	if (ice_aq_cfg_lan_txq(hw, qbuf, qbuf_size, numq, hw->port_info->lport,
+	if (ice_aq_cfg_lan_txq(hw, qbuf, qbuf_size, valq, hw->port_info->lport,
 			       dest_hw->port_info->lport,
 			       ICE_AQC_Q_CFG_TC_CHNG, NULL)) {
 		dev_warn(dev, "Failure to configure queues for LAG reset rebuild\n");
-- 
2.51.1
Technical Details
Message-ID: <20261202124956.18277-2-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-375787-linux-kernel-netdev=dewy.ru
References: <20261202124956.18277-1-przemyslaw.kitszel@intel.com>

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-375787-linux-kernel-netdev=dewy.ru
From: przemyslaw.kitszel@intel.com (Przemek Kitszel)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 1/3] ice: move only the valid VF queues on LAG reclaim and reset rebuild
Date: Wed,  2 Dec 2026 13:48:01 +0100
Organization: Usenet Network
Message-ID: <20261202124956.18277-2-przemyslaw.kitszel@intel.com>
References: <20261202124956.18277-1-przemyslaw.kitszel@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1972782"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0FKuYZNdTw1oPzwVS+SFoJu5gTQ= sha256:CrDF6BV8oNG3rYtEAQR0j5pvlSobrR/VZBgNQg1J6E4=
	sha1:1qlVgxP+yPelhcaaeWiniRkPVGE= sha256:OtVRMsTsqFVkhNtGJp+ImSF0RfvK5hIs9DkaXhcQAEM=
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 A849A11763B; Wed,  2 Dec 2026 15:50:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 ek81HjZ_cAGX;
	Wed,  2 Dec 2026 15:50:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375787-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2B2F1117635; Wed,  2 Dec 2026 15:50:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 36F8C2DBA7; Wed,  2 Dec 2026 12:50:14 +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=1796215812;
	b=YSH4dvW4MnxybQiZI4jErQhQHrOQIifZDMzPwPzzsn8fKG6c6+nJEYK9uNvW0C4IorDz
	 QYec4dM42Vn6vVw/4lDeVlvryGBxH20O7ei/QEG+prJOSl3nBCU1twr9uGkID96sYv+T7
	 Wf72NCY1oeP85VksWaOHRZwko/u3syb3kcNrR4OhQeKHOZMIS3fUC8mh7RN511z8tRpzt
	 9XGg45GR0L5vrcb61y6QE7y614ybVRflNxtB6fiXcrA2x1qkDCnEYYbDJdWAVyWHYY0yC
	 2LKanVpm8agsn3mhcZ77aZX166+Q0/4JEOwisJm3z3JXK/fyENrFd6c7i8MKaGwPQVA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796215812;
	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:
	 In-Reply-To:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=H1p73ZmtXrv4APNFFPo0gBLMPrQDDeqWbAYq8kZgF6E=;
	b=SlcSdGF6YX62Mmf9KdbU1HzdZ7UYoI2LnWlgyCa0X4hFYsEVyMOTD0r1f4f4kO/WUPNr
	 Q27Us5husCz8MYInoHc9MyOdixR+bV7IPEHJ2nt/AIZAwiktBiO+z6ekVrt0ftaHz9Vjp
	 MB8lICCtM83TxH04Flak9MaUeosbOPfJszFChhV/ujMXwc9kRLMTNroINe4HlB7F/Bke4
	 XmcEwwmsytXHuCkGXDjbDSarVZldBxySTOVLYg77LZ+Q6BPDjMS/ouxA1Q91oJEVEXD9I
	 bumFy4aX7sx3cKLWB3tQvV+Z6wv3ZEcWEl/wFQbmwZDdmXgjnKd9wzCSA/FMHNX2Qiw==
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=L2pOXlog;
	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 8719F606A334;
	Wed,  2 Dec 2026 12:50:12 +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=L2pOXlog
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=1796215811;
	b=3d/GOx8eRqPSBwqi9IpUR6ZiQm2I/dy9lC52K3w9bi3hm2+bw4MOQtppUL9VtoF3YSaQ
	 TTGWCifzDY3oYjRI+jVKCwCBfcJjBUdtIasS/7rtXgRneHNfH5tjHJct+FlJ6Vrk1MX8+
	 r8nP4feNPukGsSpUPnGnZE1rrSdKNb8LJ4m2zmaMysdPTUKG8/YBN6boCqK0xm2Kt0bZ6
	 nVSetWPZllV+fJmS2DywSKR2j//h3ln8Id0uc+zsZnk0nAoDb9uM5jdt8K0VjvShGFHI1
	 5fpDCy4zDvUYKRSr0Bke5fGSWVXUTPjYsqLqJkiwzqwh5ZCkovESLe8DBY1GWP0cDXw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796215811;
	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:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=H1p73ZmtXrv4APNFFPo0gBLMPrQDDeqWbAYq8kZgF6E=;
	b=eNjTYm3GwYM08ftt+9sNwnQMSmUrZaM81xFmRaaEdxnM7MUm57nwI8Xf5XwrCWxCRIPf
	 eMFRDcxgNJCrV5VG0lOu1XC6JuxpKLVAklje2CBMKhA5ukF5QaBa59JBD2YPuQV1Ot986
	 5bxpoP5txKEZRGxSWeS28yh+q9cFSG/pC+YBFIDxzCP1vPlOnNvZNXh2E4AxsDzHt8CYs
	 9JS5uicushlRRZNc//k1Z7NTMm/bbCAsM8bpp+5+XLXKFdiVEUR7dslYUwafa1xdQfiWo
	 /JaxCnSQbncUvH9AjcIzsXnz6MRCLSvvAqmiXiioo9eEoq9wKutGLw75a+ta43JeTaQ==
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=L2pOXlog;
	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 D0205606A32C
	for <netdev@vger.kernel.org>; Wed,  2 Dec 2026 12:50:10 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0205606A32C
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=1796215811; x=1827751811;
  h=from:to:cc:subject:date:message-id:in-reply-to:
   references:mime-version:content-transfer-encoding;
  bh=H1p73ZmtXrv4APNFFPo0gBLMPrQDDeqWbAYq8kZgF6E=;
  b=L2pOXloguwndv3oTtiIVuU5DoYKTJFZOPWcx35pW883V4Cvzw7JomeSu
   pWZy/cz6tk3iKp+JAAc5XNFUKYQ56RRLQUiefGZb91jYzNJnVm8Fkl4no
   ENmOCXsYevt5Mw6HmmGK61bKfI4ntbMfkPZgtzeizxGEvlBYT+++I4RoP
   pOglkF9nj18oCPpKbqVm+/sHQuRYiFAuMgdYwDA1by9BvrXteR/2eeQFY
   O2GNAN4kInq7RoDZz0okIjpiPjdPX9p+kwaCnAiCJF7KfPziXKyqPO1q7
   MTjLfmgDG0n2xirt227YyYQcASb14Y5kB+CpRBp+peYPxMD+TZpiYumE9
   w==;
X-CSE-ConnectionGUID: R745LVC4Q4i0+GddJ0cb3g==
X-CSE-MsgGUID: FNNZg9/VRz2w/+nUXcW8zw==
X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5052211"
X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; 
   d="scan'208";a="5052211"
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:11 -0800
X-CSE-ConnectionGUID: Hp8Bw5b+RcuO5RujoDE7sg==
X-CSE-MsgGUID: rIJgESU+RJqA8qOrrrnrJA==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; 
   d="scan'208";a="15168158"
X-Received: from irvmail002.ir.intel.com ([10.43.11.120])
  by fmviesa012.fm.intel.com with ESMTP; 02 Dec 2026 04:50:05 -0800
X-Received: from pkitszel-desk.tendawifi.com (unknown [10.245.245.159])
	by irvmail002.ir.intel.com (Postfix) with ESMTP id 29A802FC51;
	Wed,  2 Dec 2026 12:50:03 +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>,
	Sashiko <sashiko-bot@kernel.org>
X-Mailer: git-send-email 2.51.1
X-In-Reply-To: <20261202124956.18277-1-przemyslaw.kitszel@intel.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