]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: Collect PFC XOFF RX stats even in single TC case
authorNeerav Parikh <neerav.parikh@intel.com>
Fri, 17 Apr 2015 00:05:58 +0000 (20:05 -0400)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 28 Aug 2015 15:11:47 +0000 (08:11 -0700)
Orabug: 21570582

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>
(cherry picked from commit e120814d74bc805769d18ed7177f43a17a88fd40)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index d9b8a97666c09ad5049974f0ca1ade2d7f196126..176e951dfd3c0b05659cceb2aaa20d84b69eef97 100644 (file)
@@ -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;
        }