ibmvnic: Check adapter state during ibmvnic_poll
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Fri, 26 May 2017 14:30:54 +0000 (10:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:32:46 +0000 (15:32 -0400)
commit152ce47dc48280182ab58539a721dadb3d7a8575
treecc3252c6e9fb92b4a768a70f45b5b957a19f9a2e
parentf185a49a77bd34309fd6af6c5c7695386d010534
ibmvnic: Check adapter state during ibmvnic_poll

We do not want to process any receive frames if the ibmvnic_poll
routine is invoked while a reset is in process. Also, before
replenishing the rx pools in the ibmvnic_poll, we want to
make sure the adapter is not in the process of closing.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c