]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: count combined queues using Rx/Tx count
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tue, 3 Dec 2024 06:58:09 +0000 (07:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:16 +0000 (14:40 +0200)
commite0d0424a8a10db75b482dd2bca0d24538b6e97f6
treea6e1ed505a5216d2f2464f34a8e3101ac1c86267
parente1c3bfe365f10c3c5cfa53e16ad60201879f74f4
ice: count combined queues using Rx/Tx count

[ Upstream commit c3a392bdd31adc474f1009ee85c13fdd01fe800d ]

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.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_ethtool.c