From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
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 <poros@redhat.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Sashiko <sashiko-bot@kernel.org>
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 [thread overview]
Message-ID: <20261202124956.18277-2-przemyslaw.kitszel@intel.com> (raw)
In-Reply-To: <20261202124956.18277-1-przemyslaw.kitszel@intel.com>
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
next prev parent reply other threads:[~2026-12-02 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 12:48 [PATCH net 0/3] ice, devlink: fixes needed for XLVF Przemek Kitszel
2026-12-02 12:48 ` Przemek Kitszel [this message]
2026-12-02 12:48 ` [PATCH net 2/3] ice: lock VF config while changing its MSI-X vector count Przemek Kitszel
2026-12-02 12:48 ` [PATCH net 3/3] devlink: make room for many nested instances in a dev message Przemek Kitszel
2026-12-02 12:54 ` [PATCH net 0/3] ice, devlink: fixes needed for XLVF netdev-bot+sinfo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202124956.18277-2-przemyslaw.kitszel@intel.com \
--to=przemyslaw.kitszel@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=poros@redhat.com \
--cc=sashiko-bot@kernel.org \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox