]> 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)
commit1b9c8e52cc34ca7433a3a088266f25470aa43930
treec510f6edb3a2b6a90d5a64636b446e54de62937e
parenta8e94e8853a4e3c3b80172a082d13a9193fa7a44
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