]> 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)
commit35e37cf90407809bb99ed43605c052ef7ea868c0
treea96920d3cb4bf1a72bf7b00038619027ac2c558d
parent8b9ced5cb35dba0490848557bdf4682c11990527
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: 9280ab50a8be ("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