Skip to content

Commit

Permalink
bnx2: Refine coalescing parameters.
Browse files Browse the repository at this point in the history
- Set the USE_INT_PARAM bit so the rx-frames-irq and tx-frames-irq will take
  effect on 5709.
- Increase the default rx-frames to reduce interrupt count.
- Decrease the default rx-frames-irq and tx-frames-irq to catch more events
  during NAPI poll.

All these will reduce interrupts without affecting latency.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Aug 23, 2009
1 parent 790dab2 commit cf7474a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4921,7 +4921,7 @@ bnx2_init_chip(struct bnx2 *bp)
}

if (bp->flags & BNX2_FLAG_ONE_SHOT_MSI)
val |= BNX2_HC_CONFIG_ONE_SHOT;
val |= BNX2_HC_CONFIG_ONE_SHOT | BNX2_HC_CONFIG_USE_INT_PARAM;

REG_WR(bp, BNX2_HC_CONFIG, val);

Expand Down Expand Up @@ -7858,13 +7858,13 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)

bp->rx_csum = 1;

bp->tx_quick_cons_trip_int = 20;
bp->tx_quick_cons_trip_int = 2;
bp->tx_quick_cons_trip = 20;
bp->tx_ticks_int = 80;
bp->tx_ticks_int = 18;
bp->tx_ticks = 80;

bp->rx_quick_cons_trip_int = 6;
bp->rx_quick_cons_trip = 6;
bp->rx_quick_cons_trip_int = 2;
bp->rx_quick_cons_trip = 12;
bp->rx_ticks_int = 18;
bp->rx_ticks = 18;

Expand Down

0 comments on commit cf7474a

Please sign in to comment.