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)
commit86f669b2b7491b5697d9e63538c960ad7e94c6cc
tree19deb0931eaccc8a8164f74bde86a2e7287f144a
parentd7c0ef36bde03af0d119d895bba4cc0362e79dbb
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