i40e: Check client is open before calling client ops
authorCatherine Sullivan <catherine.sullivan@intel.com>
Mon, 15 Aug 2016 21:17:18 +0000 (14:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 20 Aug 2016 04:33:59 +0000 (21:33 -0700)
commit91cdca4faa3e4085b37cc084b15955bb20ca2e31
tree41088c52bc11055751fbcc6fc19d3175770c27c8
parentfbcfac34167328f9a063e6abd03298afabfe228b
i40e: Check client is open before calling client ops

We were having a race between the completion of the client open and
calls to the client ops so don't call a client op unless we are sure the
client is open.

Testing Hints: Load IWARP driver and make sure it works as expected.

Change-Id: I741f4f2aa4fcbfdad3e40dabbbb1b005856c396b
Signed-off-by: Catherine Sullivan <catherine.sullivan@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_client.c