]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iavf: Fix TC config comparison with existing adapter TC config
authorSudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Tue, 23 Apr 2024 18:27:19 +0000 (11:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:35:22 +0000 (16:35 +0200)
commitd1039bf6ac5146789ab8223f78906229292713fa
tree8f14181cd568c060ecbcce71449ef7e8a3c6a02a
parent792bd42d041999ba620d67e394c05fa50eecabc4
iavf: Fix TC config comparison with existing adapter TC config

[ Upstream commit 54976cf58d6168b8d15cebb395069f23b2f34b31 ]

Same number of TCs doesn't imply that underlying TC configs are
same. The config could be different due to difference in number
of queues in each TC. Add utility function to determine if TC
configs are same.

Fixes: d5b33d024496 ("i40evf: add ndo_setup_tc callback to i40evf")
Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Tested-by: Mineri Bhange <minerix.bhange@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20240423182723.740401-4-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/iavf/iavf_main.c