summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_lnc.c
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-03-09 03:07:54 +0000
committersteve <steve@FreeBSD.org>1998-03-09 03:07:54 +0000
commita1c51b8df506e78288911322a2902e9f8209aa7a (patch)
tree3c030a55fed9e4ba2f51a85e3812379ea07abf5b /sys/i386/isa/if_lnc.c
parent46d271e6548050b5cb97f231ea3594ed780afad6 (diff)
downloadFreeBSD-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/i386/isa/if_lnc.c')
-rw-r--r--sys/i386/isa/if_lnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c
index bff0d53..d6f9060 100644
--- a/sys/i386/isa/if_lnc.c
+++ b/sys/i386/isa/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)
}
OpenPOWER on IntegriCloud