Patch "ice: Fix DSCP PFC TLV creation" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ice: Fix DSCP PFC TLV creation

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ice-fix-dscp-pfc-tlv-creation.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b7944f580fa73db6345ba8823e26cd12426416da
Author: Dave Ertman <david.m.ertman@xxxxxxxxx>
Date:   Fri Jan 27 14:24:10 2023 +0100

    ice: Fix DSCP PFC TLV creation
    
    [ Upstream commit fef3f92e8a4214652d8f33f50330dc5a92efbf11 ]
    
    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: 2a87bd73e50d ("ice: Add DSCP support")
    Signed-off-by: Dave Ertman <david.m.ertman@xxxxxxxxx>
    Signed-off-by: Karen Ostrowska <karen.ostrowska@xxxxxxxxx>
    Tested-by: Gurucharan G <gurucharanx.g@xxxxxxxxx> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/ice/ice_dcb.c b/drivers/net/ethernet/intel/ice/ice_dcb.c
index 0b146a0d42058..6375372f87294 100644
--- a/drivers/net/ethernet/intel/ice/ice_dcb.c
+++ b/drivers/net/ethernet/intel/ice/ice_dcb.c
@@ -1372,7 +1372,7 @@ ice_add_dscp_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
 	tlv->ouisubtype = htonl(ouisubtype);
 
 	buf[0] = dcbcfg->pfc.pfccap & 0xF;
-	buf[1] = dcbcfg->pfc.pfcena & 0xF;
+	buf[1] = dcbcfg->pfc.pfcena;
 }
 
 /**



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux