]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bnx2x'
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 20:28:08 +0000 (15:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 20:28:08 +0000 (15:28 -0500)
commit0fec26f2de216822251e2e5c053c89774669560e
tree0a543a0f2f3717659320a29201ac14f6ecf25c6b
parentbde2e04b06227a9cc9c6b53e1f56b5acdc23d7d6
parentbe8561a39bed95f8727e4ac96a8c61a94d84aa33
Merge branch 'bnx2x'

Michal Schmidt says:

====================
bnx2x: minimize RAM usage in kdump

kdump kernels usually have only a small amount of memory reserved.
bnx2x can be memory-hungry. Let's minimize its memory usage when
running in kdump.

I detect kdump by looking at the "reset_devices" flag. A couple of
storage drivers (cciss, hpsa) use it for the same purpose. I am not sure
this is the best way to solve the problem, but it works.

Should it be made more generic by, say, looking at the total amount
of lowmem instead? Not using TPA by default when lowmem is small and/or
defaulting to fewer queues would help 32bit systems where a driver for
a multi-function multi-queue NIC can consume a significant amount
of available memory. Or do we want no such heuristics?

Is this something to consider doing for other network drivers too?
====================

Acked-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>