diff options
author | Shahed Shaikh <shahed.shaikh@qlogic.com> | 2014-06-11 22:09:11 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-12 02:44:29 +0400 |
commit | 4da005cf1e30897520106114a8ce11a5aa558497 (patch) | |
tree | eb6a1cdb2afbfa0139ffec9460a7681091fb3d29 /drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | |
parent | efd0f11d85e16d375dddeb77e8e78f43c67c5b13 (diff) | |
download | linux-4da005cf1e30897520106114a8ce11a5aa558497.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h index 41abe6070466..d85f7e1e117f 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h @@ -441,6 +441,8 @@ struct qlcnic_82xx_dump_template_hdr { u32 rsvd1[0]; }; +#define QLC_PEX_DMA_READ_SIZE (PAGE_SIZE * 16) + struct qlcnic_fw_dump { u8 clr; /* flag to indicate if dump is cleared */ bool enable; /* enable/disable dump */ |