ice: SW DCB, report correct max TC value
authorDave Ertman <david.m.ertman@intel.com>
Thu, 13 Feb 2020 21:31:21 +0000 (13:31 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 19 Feb 2020 21:09:20 +0000 (13:09 -0800)
commit31c5f7f3f45aab8231c76be6d87c7503f442d019
tree0e7b7e457433bb70a1bc755822a9aa762606ae60
parent27d9be98eda1d01073db142f11f4880ff513dae2
ice: SW DCB, report correct max TC value

lldpad is using the value reported in the DCB config for
max_tc as the max allowed number of TCs, not the current
max.  ICE driver was reporting it as current maximum TC.

Change DCB_NL function to report maximum TC allowed by
this device.

Signed-off-by: Dave Ertman <david.m.ertman@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_dcb_nl.c