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>
Showing
- drivers/net/ethernet/intel/ice/ice_adminq_cmd.h 1 addition, 0 deletionsdrivers/net/ethernet/intel/ice/ice_adminq_cmd.h
- drivers/net/ethernet/intel/ice/ice_common.c 12 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice_common.c
- drivers/net/ethernet/intel/ice/ice_dcb_lib.c 8 additions, 2 deletionsdrivers/net/ethernet/intel/ice/ice_dcb_lib.c
- drivers/net/ethernet/intel/ice/ice_type.h 3 additions, 0 deletionsdrivers/net/ethernet/intel/ice/ice_type.h
Loading
Please register or sign in to comment