mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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>
This commit is contained in:
parent
27d9be98ed
commit
31c5f7f3f4
1 changed files with 1 additions and 8 deletions
|
@ -100,14 +100,7 @@ static int ice_dcbnl_setets(struct net_device *netdev, struct ieee_ets *ets)
|
|||
goto ets_out;
|
||||
}
|
||||
|
||||
/* max_tc is a 1-8 value count of number of TC's, not a 0-7 value
|
||||
* for the TC's index number. Add one to value if not zero, and
|
||||
* for zero set it to the FW's default value
|
||||
*/
|
||||
if (max_tc)
|
||||
max_tc++;
|
||||
else
|
||||
max_tc = IEEE_8021QAZ_MAX_TCS;
|
||||
max_tc = pf->hw.func_caps.common_cap.maxtc;
|
||||
|
||||
new_cfg->etscfg.maxtcs = max_tc;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue