mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
i40e: Collect PFC XOFF RX stats even in single TC case
When PFC is enabled for any UP in single TC configuration the driver didn't collect the PFC XOFF RX stats. Though a single TC with PFC enabled is not a common scenario do not prevent the driver from collecting stats if firmware indicates that PFC is enabled. Change-ID: Ie20bd58b07608b528f3c6d95894c9ae56b00077a Signed-off-by: Neerav Parikh <neerav.parikh@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
7aac842596
commit
e120814d74
@ -772,9 +772,8 @@ static void i40e_update_prio_xoff_rx(struct i40e_pf *pf)
|
||||
|
||||
dcb_cfg = &hw->local_dcbx_config;
|
||||
|
||||
/* See if DCB enabled with PFC TC */
|
||||
if (!(pf->flags & I40E_FLAG_DCB_ENABLED) ||
|
||||
!(dcb_cfg->pfc.pfcenable)) {
|
||||
/* Collect Link XOFF stats when PFC is disabled */
|
||||
if (!dcb_cfg->pfc.pfcenable) {
|
||||
i40e_update_link_xoff_rx(pf);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user