]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90ebc38dc60ba9eec4d3f14ff4b2fefe30a99194
treec510f6edb3a2b6a90d5a64636b446e54de62937e
parent1aed99fd28144e5bfbfa97709c3e4200955d83b8
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