]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:33 +0000 (15:09 +0100)
commit70e42a45c5d82667bc8a5702fc76134874b83fd7
tree3dbd7267c926ed39d7569bb1878fe5bf2ae1bcd1
parentcfe2ccbd14879afe489ffd6de9ad634b2b361a45
ice: report correct max number of TCs

[ Upstream commit 7dcf7aa01c7b9f18727cbe0f9cb4136f1c6cdcc2 ]

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: b94b013eb626 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/intel/ice/ice_dcb_nl.c