]> 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:32:40 +0000 (16:32 +0200)
commit2f7cc2dfc15999e8878b7689d172053b57fb3ebb
tree54d22ff8b3b7273f26edc13d427a8185559d0b26
parenta91892696f58799972b11490f972ad3588241606
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