Message ID | 20250205185512.895887-2-anthony.l.nguyen@intel.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | [net-next,v2,1/9] ice: count combined queues using Rx/Tx count | expand |
Hello: This series was applied to netdev/net-next.git (main) by Tony Nguyen <anthony.l.nguyen@intel.com>: On Wed, 5 Feb 2025 10:55:01 -0800 you wrote: > From: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> > > Previous implementation assumes that there is 1:1 matching between > vectors and queues. It isn't always true. > > Get minimum value from Rx/Tx queues to determine combined queues number. > > [...] Here is the summary with links: - [net-next,v2,1/9] ice: count combined queues using Rx/Tx count https://git.kernel.org/netdev/net-next/c/c3a392bdd31a - [net-next,v2,2/9] ice: devlink PF MSI-X max and min parameter https://git.kernel.org/netdev/net-next/c/b2657259fce9 - [net-next,v2,3/9] ice: remove splitting MSI-X between features https://git.kernel.org/netdev/net-next/c/79d97b8cf9a8 - [net-next,v2,4/9] ice: get rid of num_lan_msix field https://git.kernel.org/netdev/net-next/c/ad61cd9c67ad - [net-next,v2,5/9] ice, irdma: move interrupts code to irdma https://git.kernel.org/netdev/net-next/c/3e0d3cb3fbe0 - [net-next,v2,6/9] ice: treat dyn_allowed only as suggestion https://git.kernel.org/netdev/net-next/c/a8c2d3932c11 - [net-next,v2,7/9] ice: enable_rdma devlink param https://git.kernel.org/netdev/net-next/c/87181cd6985f - [net-next,v2,8/9] ice: simplify VF MSI-X managing https://git.kernel.org/netdev/net-next/c/a203163274a4 - [net-next,v2,9/9] ice: init flow director before RDMA https://git.kernel.org/netdev/net-next/c/d67627e7b532 You are awesome, thank you!
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index f241493a6ac8..6bbb304ad9ab 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -3817,8 +3817,7 @@ static u32 ice_get_combined_cnt(struct ice_vsi *vsi) ice_for_each_q_vector(vsi, q_idx) { struct ice_q_vector *q_vector = vsi->q_vectors[q_idx]; - if (q_vector->rx.rx_ring && q_vector->tx.tx_ring) - combined++; + combined += min(q_vector->num_ring_tx, q_vector->num_ring_rx); } return combined;