diff options
author | steve <steve@FreeBSD.org> | 1998-03-09 03:07:54 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-03-09 03:07:54 +0000 |
commit | a1c51b8df506e78288911322a2902e9f8209aa7a (patch) | |
tree | 3c030a55fed9e4ba2f51a85e3812379ea07abf5b /sys/dev | |
parent | 46d271e6548050b5cb97f231ea3594ed780afad6 (diff) | |
download | FreeBSD-src-a1c51b8df506e78288911322a2902e9f8209aa7a.zip FreeBSD-src-a1c51b8df506e78288911322a2902e9f8209aa7a.tar.gz |
Correct an ethernet framesize mismatch that caused poor
device performance among other things.
PR: 4989, 5910
Submitted by: Yoshikazu Goto <gotoh@ae.anritsu.co.jp>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index bff0d53..d6f9060 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -1713,7 +1713,7 @@ lnc_start(struct ifnet *ifp) desc = sc->trans_ring + sc->next_to_send; len = mbuf_to_buffer(head, desc->buff.data); desc->md->md3 = 0; - desc->md->md2 = -max(len, ETHER_MIN_LEN); + desc->md->md2 = -max(len, ETHER_MIN_LEN - ETHER_CRC_LEN); desc->md->md1 |= OWN | STP | ENP; INC_MD_PTR(sc->next_to_send, sc->ntdre) } |