ice: Limit Max TCs on devices with more than 4 ports
authorUsha Ketineni <usha.k.ketineni@intel.com>
Thu, 8 Aug 2019 14:39:24 +0000 (07:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Sep 2019 23:35:58 +0000 (16:35 -0700)
commita257f188b72bf0f8b5a08efba174373f5708ff0c
tree2affe01654b80dbe24c7f35e42270c1ad985ea18
parent6a025730e0cdf47f8cdc323708b9cbe23fdff7f7
ice: Limit Max TCs on devices with more than 4 ports

This patch limits the max TCs set by the driver to the value provided by
the firmware as per the capabilities of the device. Otherwise, hard coding
to 8 TC max would fail the device configurations with more than 4 ports.

Signed-off-by: Usha Ketineni <usha.k.ketineni@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_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_dcb_lib.c
drivers/net/ethernet/intel/ice/ice_type.h