qlcnic: Pre-allocate DMA buffer used for minidump collection
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Wed, 11 Jun 2014 18:09:11 +0000 (14:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:44:29 +0000 (15:44 -0700)
commit4da005cf1e30897520106114a8ce11a5aa558497
treeeb6a1cdb2afbfa0139ffec9460a7681091fb3d29
parentefd0f11d85e16d375dddeb77e8e78f43c67c5b13
qlcnic: Pre-allocate DMA buffer used for minidump collection

Pre-allocate the physically contiguous DMA buffer used for
minidump collection at driver load time, rather than at
run time, to minimize allocation failures. Driver will allocate
the buffer at load time if PEX DMA support capability is indicated
by the adapter.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c