]> git.baikalelectronics.ru Git - kernel.git/commit
ice: report correct max number of TCs
authorDave Ertman <david.m.ertman@intel.com>
Wed, 2 Sep 2020 15:53:44 +0000 (08:53 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 22 Feb 2021 18:22:07 +0000 (10:22 -0800)
commit3c8e458f70152cea6e955e126cf3e73ef6be7cc7
tree0a568bc51d725ab08fbc1bddead42e32e914b2e8
parentbeb8b459530ef0390cec0a3043fb109cd6e502a0
ice: report correct max number of TCs

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: ed9f1f93356e ("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>
drivers/net/ethernet/intel/ice/ice_dcb_nl.c