From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.12 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== 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== 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 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 ; Wed, 2 Dec 2026 12:50:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0205606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com 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 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" 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" Received: from irvmail002.ir.intel.com ([10.43.11.120]) by fmviesa012.fm.intel.com with ESMTP; 02 Dec 2026 04:50:05 -0800 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) From: Przemek Kitszel To: netdev@vger.kernel.org, pabeni@redhat.com, willemb@google.com, donald.hunter@gmail.com, jiri@resnulli.us 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 , Przemek Kitszel , Sashiko 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 Message-ID: <20261202124956.18277-2-przemyslaw.kitszel@intel.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20261202124956.18277-1-przemyslaw.kitszel@intel.com> References: <20261202124956.18277-1-przemyslaw.kitszel@intel.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Closes: https://lore.kernel.org/netdev/179555745171.3135.7481127088391251734@kernel.org Signed-off-by: Przemek Kitszel --- 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