Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 1995 12:10:51 -0800
From:      David Greenman <davidg@Root.COM>
To:        Chitra Venkatramani <chitra@cs.sunysb.edu>
Cc:        hackers@FreeBSD.org
Subject:   Re: net question 
Message-ID:  <199503162010.MAA00215@corbin.Root.COM>
In-Reply-To: Your message of "Thu, 16 Mar 95 10:23:03 EST." <199503161523.KAA21273@cs.sunysb.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In if_ed.c, the ethernet driver, the sizes of the transmit and 
>receive buffers are set. For 16bit cards, the transmit buffer size
>is set to 2 buffers, each 6 pages, each page being 256 bytes.
>And the remaining memory is set aside for the receiver ring buffer.
>
>I would like to know if it is possible to set the transmit buffer
>size to be larger, say 6 buffers and leave the rest for the receiver,
>in software ? That is, is this parameter software configurable ?

   It is possible, and would require a one line patch to the driver code. It
was written to support an arbitrary number of transmit buffers. I did quite a
bit of testing after writing the code to determine if there was any performance
difference between 2 transmit buffers and 3, 4, 5, etc. In all of my tests,
the performance came out the same. I can contrive some cases where more buffers
might help...but the improvement would likely be very marginal.

-DG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503162010.MAA00215>