diff options
author | Amir Vadai <amirv@mellanox.com> | 2014-08-25 16:06:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-25 15:42:19 -0700 |
commit | c993189601fa89842eee96814e3ab2277fae3076 (patch) | |
tree | 54025e3931195d56a4ef051df8cd2ec53077825d /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | |
parent | 48ea526a6877d605c961aa37fae33f3227b29424 (diff) | |
download | talos-op-linux-c993189601fa89842eee96814e3ab2277fae3076.tar.gz talos-op-linux-c993189601fa89842eee96814e3ab2277fae3076.zip |
net/bnx2x: Use is_kdump_kernel() to detect kdump kernel
Use is_kdump_kernel() to detect kdump kernel, instead of
reset_devices.
CC: Ariel Elior <ariel.elior@qlogic.com>
CC: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c index 23881448fb02..c99087f746a3 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c @@ -21,6 +21,7 @@ #include <linux/if_vlan.h> #include <linux/interrupt.h> #include <linux/ip.h> +#include <linux/crash_dump.h> #include <net/tcp.h> #include <net/ipv6.h> #include <net/ip6_checksum.h> @@ -64,7 +65,7 @@ static int bnx2x_calc_num_queues(struct bnx2x *bp) int nq = bnx2x_num_queues ? : netif_get_num_default_rss_queues(); /* Reduce memory usage in kdump environment by using only one queue */ - if (reset_devices) + if (is_kdump_kernel()) nq = 1; nq = clamp(nq, 1, BNX2X_MAX_QUEUES(bp)); |