OSDN Git Service

qed: Limit msix vectors in kdump kernel to the minimum required count.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Mon, 2 Jul 2018 03:03:05 +0000 (20:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 11:41:30 +0000 (20:41 +0900)
commitbb7858ba1102f82470a917e041fd23e6385c31be
tree76eb848316051808ad01ac26dafbbf5a157583ef
parent5dc2d3996a8b221c20dd0900bdad45031a572530
qed: Limit msix vectors in kdump kernel to the minimum required count.

Memory size is limited in the kdump kernel environment. Allocation of more
msix-vectors (or queues) consumes few tens of MBs of memory, which might
lead to the kdump kernel failure.
This patch adds changes to limit the number of MSI-X vectors in kdump
kernel to minimum required value (i.e., 2 per engine).

Fixes: fe56b9e6a ("qed: Add module with basic common support")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c