netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Make is_kdump_kernel() accessible from modules
@ 2014-07-27 14:59 Amir Vadai
  2014-07-27 14:59 ` [PATCH net-next 1/3] crash_dump: " Amir Vadai
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Amir Vadai @ 2014-07-27 14:59 UTC (permalink / raw)
  To: David S. Miller, Andrew Morton, Vivek Goyal
  Cc: netdev, Amir Vadai, Or Gerlitz, Yevgeny Petrilin

Hi,

I'm sending this patchset to net-next because it touches a commit [1] that was
applied lately to net-next.

Drivers need to know if running from kdump kernel in order to change their
memory profile - since kdump environment is limited by available memory.
Currently there are drivers that are using reset_devices as suggested in [2].
In [2] it was suggested to use reset_devices, but the context was, to enable
driver to know when the hardware device is needed to be reset, and not if this
is a kdump environment. We think that is_kdump_kernel() is better suited to
select between different memory profiles.

The first patch in this patchset exports a needed symbol in order to make
is_kdump_kernel() accessible from the drivers. The rest of the patches change
from reset_devices to is_kdump_kernel() in 2 networking drivers.

The idea of this patchset was suggested by Vivek Goyal.

Tested and applied on top of commit f6e6753 ("Merge branch 'filter-move'")

[1] - ea1c1af: ("net/mlx4_en: Reduce memory consumption on kdump kernel")
[2] - https://lkml.org/lkml/2011/1/27/341

Thanks,
Amir

Amir Vadai (3):
  crash_dump: Make is_kdump_kernel() accessible from modules
  net/mlx4: Use is_kdump_kernel() to detect kdump kernel
  net/bnx2x: Use is_kdump_kernel() to detect kdump kernel

 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c  | 3 ++-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 3 ++-
 include/linux/mlx4/device.h                      | 3 ++-
 kernel/crash_dump.c                              | 1 +
 4 files changed, 7 insertions(+), 3 deletions(-)

-- 
1.8.3.4

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-08-06  8:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-27 14:59 [PATCH net-next 0/3] Make is_kdump_kernel() accessible from modules Amir Vadai
2014-07-27 14:59 ` [PATCH net-next 1/3] crash_dump: " Amir Vadai
2014-07-27 14:59 ` [PATCH net-next 2/3] net/mlx4: Use is_kdump_kernel() to detect kdump kernel Amir Vadai
2014-07-27 14:59 ` [PATCH net-next 3/3] net/bnx2x: " Amir Vadai
2014-07-28  0:48 ` [PATCH net-next 0/3] Make is_kdump_kernel() accessible from modules Andi Kleen
2014-07-28 12:26   ` Vivek Goyal
2014-07-29 23:46     ` David Miller
2014-07-30 12:35       ` Vivek Goyal
2014-07-31  6:51         ` Amir Vadai
2014-07-31 13:07           ` Vivek Goyal
2014-07-31 19:22             ` David Miller
2014-08-01 12:44               ` Vivek Goyal
2014-08-06  8:10               ` Amir Vadai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).