]> git.baikalelectronics.ru Git - kernel.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)
commit749910a040f73bd05ac498a9948d77ad77a36765
treea96920d3cb4bf1a72bf7b00038619027ac2c558d
parentf1a1da100f599c52f2b519b102dda276b9db9e65
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: ca12ce942312 ("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