OSDN Git Service

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)
commit9164f761c99493a947dcbf3889a157943b46e738
tree59b53c080896ccf7976f8023989ee565642301d1
parenteae1bbb2a4519ad6c920a061dc49035ab5c36f1f
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