aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2009-08-21 12:20:48 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-22 20:48:53 -0400
commitcf7474a6f4eda22603591b7d6253dffc224e4784 (patch)
treee8acadff905d9858b1ac9298c51ef75ccf10daa8
parent790dab2f671cb477e6179322a6c48c898e311e72 (diff)
bnx2: Refine coalescing parameters.
- 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>
-rw-r--r--drivers/net/bnx2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index e025833e664f..ea6e6b73f494 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -4921,7 +4921,7 @@ bnx2_init_chip(struct bnx2 *bp)
4921 } 4921 }
4922 4922
4923 if (bp->flags & BNX2_FLAG_ONE_SHOT_MSI) 4923 if (bp->flags & BNX2_FLAG_ONE_SHOT_MSI)
4924 val |= BNX2_HC_CONFIG_ONE_SHOT; 4924 val |= BNX2_HC_CONFIG_ONE_SHOT | BNX2_HC_CONFIG_USE_INT_PARAM;
4925 4925
4926 REG_WR(bp, BNX2_HC_CONFIG, val); 4926 REG_WR(bp, BNX2_HC_CONFIG, val);
4927 4927
@@ -7858,13 +7858,13 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7858 7858
7859 bp->rx_csum = 1; 7859 bp->rx_csum = 1;
7860 7860
7861 bp->tx_quick_cons_trip_int = 20; 7861 bp->tx_quick_cons_trip_int = 2;
7862 bp->tx_quick_cons_trip = 20; 7862 bp->tx_quick_cons_trip = 20;
7863 bp->tx_ticks_int = 80; 7863 bp->tx_ticks_int = 18;
7864 bp->tx_ticks = 80; 7864 bp->tx_ticks = 80;
7865 7865
7866 bp->rx_quick_cons_trip_int = 6; 7866 bp->rx_quick_cons_trip_int = 2;
7867 bp->rx_quick_cons_trip = 6; 7867 bp->rx_quick_cons_trip = 12;
7868 bp->rx_ticks_int = 18; 7868 bp->rx_ticks_int = 18;
7869 bp->rx_ticks = 18; 7869 bp->rx_ticks = 18;
7870 7870