Skip to content

Commit

Permalink
bnx2x: save RAM in kdump kernel by disabling TPA
Browse files Browse the repository at this point in the history
When running in a kdump kernel, disable TPA. This saves memory, which
tends to be scarce in kdump.

TPA, being a receive acceleration, is unlikely to be useful for kdump,
whose purpose is to send the memory image out.

This saves additional 5 MB in the kdump environment.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michal Schmidt authored and David S. Miller committed Feb 26, 2014
1 parent ff2ad30 commit 94d9de3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11804,6 +11804,8 @@ static int bnx2x_init_bp(struct bnx2x *bp)

bp->disable_tpa = disable_tpa;
bp->disable_tpa |= IS_MF_STORAGE_SD(bp) || IS_MF_FCOE_AFEX(bp);
/* Reduce memory usage in kdump environment by disabling TPA */
bp->disable_tpa |= reset_devices;

/* Set TPA flags */
if (bp->disable_tpa) {
Expand Down

0 comments on commit 94d9de3

Please sign in to comment.