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 <sash…@kernel.org> Closes: https://lore.kernel.org/netdev/1795…@kernel.org Signed-off-by: Przemek Kitszel <prze…@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