is RTL8139 THAT bad?

Dag-Erling Smørgrav des at des.no
Sun Jun 21 15:46:15 UTC 2009


Wojciech Puchar <wojtek at wojtek.tensor.gdynia.pl> writes:
> Why it's THAT bad?

http://svn.freebsd.org/base/head/sys/pci/if_rl.c

Scroll down past the copyright, license and attribution.  Read the
38-line comment that explains just how crappy this chip really is.

Executive summary: every single transmitted frame must be copied from
the mbuf into a DMA transmit buffer, and every single received frame
must be copied from the (quite small) DMA receive buffer into an mbuf.
In addition, the transmit queue can only hold four frames.

Other chips use scatter-gather lists and other mechanisms which allow
them to DMA frames straight out of or into mbufs.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list