]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: reopen client after reset
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 14 Sep 2016 23:24:36 +0000 (16:24 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:40:13 +0000 (19:40 -0500)
commit3a767a858bb2f3dab2304b908dd496a644b6ade5
tree8588deb756b8498bc577a5012888716684296541
parentb383452aeb7b122a109858d758f1aba7b98e1f45
i40e: reopen client after reset

Orabug: 24568124

Allow the client interface to reopen existing clients if they were
closed. This allows clients to recover from reset, which is essential
for supporting VF RDMA. In one instance, the driver was not clearing the
open bit when the client was closed. Add the code to clear this bit so
that the state is accurate and the driver will not attempt to reopen
already-open clients. Remove the ref_cnt variable; it was just getting
in the way and was not being used consistently.

Change-ID: Ic71af4553b096963ac0c56a997f887c9a4ed162d
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 7be96322a57a3612ea7640e6ff56030a7350fd7f)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_client.c
drivers/net/ethernet/intel/i40e/i40e_client.h