]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Correct capabilities reporting of max TCs
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 8 Nov 2019 14:23:18 +0000 (06:23 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Nov 2019 21:06:34 +0000 (13:06 -0800)
commit5e4ce1057d144c00d164c8b4e252947af06ad272
tree59b53c080896ccf7976f8023989ee565642301d1
parente8f008e9d35e7b595753bfada0d71f59fc00b33b
ice: Correct capabilities reporting of max TCs

Firmware always returns 8 as the max number of supported TCs. However on
devices with more than 4 ports, the maximum number of TCs per port is
limited to 4. Check and, if necessary, correct the reporting of
capabilities for devices with more than 4 ports.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@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_common.c