peter teoh wrote:
Steven Stallion wrote:
On Mon, 21 Sep 2009 15:22:33 -0700, Vishal Ahuja <[email protected]>
wrote:
Hi All,
I am trying to figure out the receive buffer size for the
NIC
on my machine. It is an Intel PRO/1000 controller (Gb controller), and
the
driver is e1000g. Can someone please point me to the right
documentation.
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub-0.97/netboot/via-rhine.c#31(shows
the RX_BUFFER_SIZE = 1536). I am not sure what the units are, and if
this is the right file to look at.
Your best bet is to look in the hardware specifications for the specific
chipset you have. RX buffer limits are typically imposed by the hardware
and vary from manufacturer to manufacturer. Looking in the driver source
will probably just frustrate you.
pardon my ignorance. since your card is e1000g, and u are asking for
rx buffer, the relevant code may be here:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/io/e1000g/e1000g_rx.c#141
and looking into the e1000g_rx_setup() function there is something like:
I am not sure why you need to read back the size after writing to
it. Does this read actually force the write to flush out from the
cache into the hardware?
Perhaps you will have a better insight than me on the possible buffer
size after reading? (buf_low and buf_high?)
does it make any sense to you?
Sorry for the error in posting....Thunderbird expanded out the URL just
before sending out!!!!
Ok....here I copied the from URL above (e1000g_rx_setup() function):
257
258 /*
259 * Setup the Receive Control Register (RCTL), and ENABLE the
260 * receiver. The initial configuration is to: Enable the receiver,
261 * accept broadcasts, discard bad packets (and long packets),
262 * disable VLAN filter checking, set the receive descriptor
263 * minimum threshold size to 1/2, and the receive buffer size to
264 * 2k.
265 */
There is a comment "receive buffer size" up there?
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss