]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: Reduce memory usage when running in kdump kernel.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 22 May 2019 23:12:56 +0000 (19:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 01:02:14 +0000 (18:02 -0700)
commitd629522e1d66561f38e5c8d4f52bb6d254ec0707
treea96920d3cb4bf1a72bf7b00038619027ac2c558d
parent1b3f0b75c39f534278a895c117282014e9d0ae1f
bnxt_en: Reduce memory usage when running in kdump kernel.

Skip RDMA context memory allocations, reduce to 1 ring, and disable
TPA when running in the kdump kernel.  Without this patch, the driver
fails to initialize with memory allocation errors when running in a
typical kdump kernel.

Fixes: cf6daed098d1 ("bnxt_en: Increase context memory allocations on 57500 chips for RDMA.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h