]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2019 06:01:29 +0000 (08:01 +0200)
commitd05866b416b2ed89977fee0842bb93ff96609fcf
tree23da08c92ad648af5f4cb40c94062a15b9255740
parenta49d1ccac97429e8864149ea7423c5f66ffa8b98
bnxt_en: Reduce memory usage when running in kdump kernel.

[ Upstream commit d629522e1d66561f38e5c8d4f52bb6d254ec0707 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h