i40evf: ignore link up if not running
authorAlan Brady <alan.brady@intel.com>
Fri, 5 Jan 2018 09:55:21 +0000 (04:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:10 +0000 (11:02 +0200)
commitb9d78055c6aea80faa783b105520efa05b443075
treed93fdc88434842b0eaaff17e0c26b2a346dc9683
parent09f6d65db13b0a58af216d11a8e3f23069dc0f47
i40evf: ignore link up if not running

[ Upstream commit e0346f9fcb6c636d2f870e6666de8781413f34ea ]

If we receive the link status message from PF with link up before queues
are actually enabled, it will trigger a TX hang.  This fixes the issue
by ignoring a link up message if the VF state is not yet in RUNNING
state.

Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c