• Ivan Vecera's avatar
    i40e: Fix wrong mask used during DCB config · 343bb39e
    Ivan Vecera authored
    Mask used for clearing PRTDCB_RETSTCC register in function
    i40e_dcb_hw_rx_ets_bw_config() is incorrect as there is used
    define I40E_PRTDCB_RETSTCC_ETSTC_SHIFT instead of define
    I40E_PRTDCB_RETSTCC_ETSTC_MASK.
    
    The PRTDCB_RETSTCC register is used to configure whether ETS
    or strict priority is used as TSA in Rx for particular TC.
    
    In practice it means that once the register is set to use ETS
    as TSA then it is not possible to switch back to strict priority
    without CoreR reset.
    
    Fix the value in the clearing mask.
    
    Fixes: 90bc8e00 ("i40e: Add hardware configuration for software based DCB")
    Signed-off-by: default avatarIvan Vecera <ivecera@redhat.com>
    Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
    Reviewed-by: default avatarSimon Horman <horms@kernel.org>
    Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    343bb39e
i40e_dcb.c 54.1 KB