OSDN Git Service

i40e: Fix for Tx timeouts when interface is brought up if DCB is enabled
authorMartyna Szapar <martyna.szapar@intel.com>
Wed, 8 Aug 2018 00:11:23 +0000 (17:11 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 24 Aug 2018 15:52:35 +0000 (08:52 -0700)
commitfa38e30ac73fbb01d7e5d0fd1b12d412fa3ac3ee
treebba9bb360e6319b6d1ad25449460b6544c4f243a
parent939b701ad63314f5aa90dcd3d866f73954945209
i40e: Fix for Tx timeouts when interface is brought up if DCB is enabled

If interface is connected to switch port configured for DCB there are
TX timeouts when bringing up interface. Problem started appearing after
adding in i40e driver code mqprio hardware offload mode. In function
i40e_vsi_configure_bw_alloc was added resetting BW rate which should
be executing when mqprio qdisc is removed but was also when there was
no mqprio qdisc added and DCB was enabled. In this patch was added
additional check for DCB flag so now when DCB is enabled the correct
DCB configs from before mqprio patch are restored.

Signed-off-by: Martyna Szapar <martyna.szapar@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c