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)
commit891540024bb959c3ce8b71b851ba24cd3ad9423f
treef216fcbd6df520533b90118e96078ff4f7c7f718
parent610ed0e93e7dd107afc2398d54de6b6fe9513f8d
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