fm10k: Only trigger data path reset if fabric is up
authorAlexander Duyck <alexander.duyck@redhat.com>
Wed, 24 Jun 2015 20:34:49 +0000 (13:34 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Sep 2015 00:06:19 +0000 (17:06 -0700)
commitac98100359e098d03dbd98783ca4becaf2ea7ec3
tree36ff6f087a565d5b376784e705904052ee6f47e9
parent95f4f8da644256d8c0ff5bab2c93ba33d2a42cd8
fm10k: Only trigger data path reset if fabric is up

This change makes it so that we only trigger the data path reset if the
fabric is ready to handle traffic.  The general idea is to avoid
triggering the reset unless the switch API is ready for us.  Otherwise
we can just postpone the reset until we receive a switch ready
notification.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pf.c