Skip to content

Commit

Permalink
ice: report correct max number of TCs
Browse files Browse the repository at this point in the history
In the driver currently, we are reporting max number of TCs
to the DCBNL callback as a kernel define set to 8.  This is
preventing userspace applications performing DCBx to correctly
down map the TCs from requested to actual values.

Report the actual max TC value to userspace from the capability
struct.

Fixes: b94b013 ("ice: Implement DCBNL support")
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
  • Loading branch information
Dave Ertman authored and Tony Nguyen committed Feb 22, 2021
1 parent 3a2eb51 commit 7dcf7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ice/ice_dcb_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ ice_dcbnl_getnumtcs(struct net_device *dev, int __always_unused tcid, u8 *num)
if (!test_bit(ICE_FLAG_DCB_CAPABLE, pf->flags))
return -EINVAL;

*num = IEEE_8021QAZ_MAX_TCS;
*num = pf->hw.func_caps.common_cap.maxtc;
return 0;
}

Expand Down

0 comments on commit 7dcf7aa

Please sign in to comment.