]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix check for contiguous TCs
authorDave Ertman <david.m.ertman@intel.com>
Fri, 8 May 2020 00:41:01 +0000 (17:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 May 2020 05:10:04 +0000 (22:10 -0700)
commit193c293a8a70ee90f1477070a8d9d39b02f514e4
treef216fcbd6df520533b90118e96078ff4f7c7f718
parent7e90b70e88e2bfcb3709ab91026b5b5e27a69b21
ice: Fix check for contiguous TCs

The current implementation for contiguous TC check
is assuming that the UPs will be mapped to TCs in
a linear progressing fashion.  This is obviously
not always true.

Change the check to allow for various UP2TC mapping
configurations.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c