]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Make napi usage dynamic
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Mon, 19 Feb 2018 19:30:39 +0000 (13:30 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 19:21:48 +0000 (14:21 -0500)
commit4dc6993c161f8a122c74e2d34fc07d6fe2cc119f
tree19deb0931eaccc8a8164f74bde86a2e7287f144a
parent48b9cbd0c01a0f9aa1c1f28a52607ebda5a7a999
ibmvnic: Make napi usage dynamic

In order to handle the number of rx sub crqs changing during a driver
reset, the ibmvnic driver also needs to update the number of napi.
To do this the code to init and free napi's is moved to their own
routines so they can be called during the reset process.

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