]> 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)
commit60fbc12dd95f673c067643c26170e9192a8ecfb3
tree59b53c080896ccf7976f8023989ee565642301d1
parent949fc0f659b5bcf87000ab8f45955ec2fd0deee6
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