]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe8ab7b87699ca6eaf0a7c80af275cbba40735f0
treecc3252c6e9fb92b4a768a70f45b5b957a19f9a2e
parent23ffe5bc941694a53e9f6a67cbdb393cba4031f6
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