]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix DSCP PFC TLV creation
authorDave Ertman <david.m.ertman@intel.com>
Fri, 27 Jan 2023 13:24:10 +0000 (14:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:27 +0000 (08:50 +0100)
commit215e184ddf779bf87d300a0828e5f1a052c4c8d3
tree694d232dd8ba90efe48c115b22efb12f2cd3b766
parentb0df249c20b683ee5e85a1c2c60e9c60d84f2b12
ice: Fix DSCP PFC TLV creation

[ Upstream commit ef834397cb54c4a10621946bff6acea1526a9c40 ]

When creating the TLV to send to the FW for configuring DSCP mode PFC,the
PFCENABLE field was being masked with a 4 bit mask (0xF), but this is an 8
bit bitmask for enabled classes for PFC.  This means that traffic classes
4-7 could not be enabled for PFC.

Remove the mask completely, as it is not necessary, as we are assigning 8
bits to an 8 bit field.

Fixes: c56146c4c21c ("ice: Add DSCP support")
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Signed-off-by: Karen Ostrowska <karen.ostrowska@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_dcb.c