Re: [TG3]: About hw coalescing infrastructure.
From: "Michael Chan" <mchan@broadcom.com>
Date: 2005-06-22 19:03:32
From: "Michael Chan" <mchan@broadcom.com>
Date: 2005-06-22 19:03:32
On Wed, 2005-06-22 at 17:25 +0200, Eric Dumazet wrote:
Is there anything I can try to tune the coalescing ? Being able to handle 100 packets each interrupt instead of one or two would certainly help. I dont mind about latency. But of course I would like not to drop packets :) But maybe the BCM5702 is not able to delay an interrupt ?
On the 5702 that supports CLRTCKS mode, you need to play around with the following parameters in tg3.h. To reduce interrupts, you generally have to increase the values. #define LOW_RXCOL_TICKS_CLRTCKS 0x00000014 #define LOW_TXCOL_TICKS_CLRTCKS 0x00000048 #define LOW_RXMAX_FRAMES 0x00000005 #define LOW_TXMAX_FRAMES 0x00000035 #define DEFAULT_RXCOAL_TICK_INT_CLRTCKS 0x00000014 #define DEFAULT_TXCOAL_TICK_INT_CLRTCKS 0x00000014 #define DEFAULT_RXCOAL_MAXF_INT 0x00000005 #define DEFAULT_TXCOAL_MAXF_INT 0x00000005