diff options
author | Rasesh Mody <rmody@brocade.com> | 2012-12-11 13:24:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-12 00:25:48 +0100 |
commit | d3f92aec9549697666f98d195cc9d59add472cfb (patch) | |
tree | 19299b33ccb3e31c6d153292a052d706b24dffde /drivers/net/ethernet/brocade/bna/bna_hw_defs.h | |
parent | bna: Tx and Rx Optimizations (diff) | |
download | linux-d3f92aec9549697666f98d195cc9d59add472cfb.tar.xz linux-d3f92aec9549697666f98d195cc9d59add472cfb.zip |
bna: TX Intr Coalescing Fix
Change Details:
For Tx IB, IPM was enabled with inter_pkt_timeo of 0. This caused the
Tx IB not to generate interrupt till inter_pkt_count of packets have been
received. Correct definition for BFI_TX_INTERPKT_TIMEO & BFI_TX_INTERPKT_COUNT
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bna_hw_defs.h')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bna_hw_defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bna_hw_defs.h b/drivers/net/ethernet/brocade/bna/bna_hw_defs.h index b8c4e21fbf4c..af3f7bb0b3b8 100644 --- a/drivers/net/ethernet/brocade/bna/bna_hw_defs.h +++ b/drivers/net/ethernet/brocade/bna/bna_hw_defs.h @@ -46,7 +46,8 @@ #define BFI_MAX_INTERPKT_COUNT 0xFF #define BFI_MAX_INTERPKT_TIMEO 0xF /* in 0.5us units */ #define BFI_TX_COALESCING_TIMEO 20 /* 20 * 5 = 100us */ -#define BFI_TX_INTERPKT_COUNT 32 +#define BFI_TX_INTERPKT_COUNT 12 /* Pkt Cnt = 12 */ +#define BFI_TX_INTERPKT_TIMEO 15 /* 15 * 0.5 = 7.5us */ #define BFI_RX_COALESCING_TIMEO 12 /* 12 * 5 = 60us */ #define BFI_RX_INTERPKT_COUNT 6 /* Pkt Cnt = 6 */ #define BFI_RX_INTERPKT_TIMEO 3 /* 3 * 0.5 = 1.5us */ |