ibmvnic: Move initialization of sub crqs to ibmvnic_init
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 25 Apr 2017 19:01:10 +0000 (15:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Apr 2017 18:49:15 +0000 (14:49 -0400)
commit1bb3c739ad2c0030792cd527f30865accc50c460
treec510f6edb3a2b6a90d5a64636b446e54de62937e
parentd346b9bc4f652ddaf29b2d80ec7fc75d3b07124e
ibmvnic: Move initialization of sub crqs to ibmvnic_init

The sub crq structures are initialized in interrupt context while
handling the response to crqs when negotiating capabilities for
the driver. The sub crqs do not need to be initialized at this point
and can be moved to being done from ibmvnic_init. Moving the init
of the sub crqs to ibmvnic_init also allows use to allocate the
memory with GFP_KERNEL instead of GFP_ATOMIC.

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