]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite066359ff39eae3f91455cf78b3c6aeab725983f
treebba9bb360e6319b6d1ad25449460b6544c4f243a
parent78b1c710904ae10334160e6f60d575785fc7e67d
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