Correct jumbo frame support for 8168C/CP/D.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 17 Oct 2008 14:12:23 +0000 (14:12 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 17 Oct 2008 14:12:23 +0000 (14:12 +0000)
commita7d57e629e0fd7b7d9244a45e852a62657f21971
tree7117a8045d6fa0d6eea0651112e86eee57af8cd8
parenta287c64d2470c5a16da871d8a745788b2e08ca21
Correct jumbo frame support for 8168C/CP/D.

These newer chips use ancient design, which does _not_ support gathering RX.
An even worse aspect of the new chips' design is that it does not compat
with old ones: the buffer length field in the RX descriptor seems to be
completely ignored by the hardware.  This means host memory will be trashed
by hardware if driver uses gathering RX.

Allocate a jumbo buffer pool for these chips and configure "max RX packet
size" register according to MTU.
sys/dev/netif/re/if_re.c
sys/dev/netif/re/if_revar.h