mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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>
This commit is contained in:
parent
0f95e128c2
commit
6cc8ce08fe
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue