mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Disabled input hardware checksum due to it being calculated incorrected
for some packets, in particular small (0 byte payload) packets. May also be related to TCP options. Approved by: wpaul MFC after: 3 days
This commit is contained in:
parent
43ce89e115
commit
eb48892e1d
1 changed files with 2 additions and 0 deletions
|
|
@ -1890,6 +1890,7 @@ bge_rxeof(sc)
|
|||
/* Remove header from mbuf and pass it on. */
|
||||
m_adj(m, sizeof(struct ether_header));
|
||||
|
||||
#if 0 /* currently broken for some packets, possibly related to TCP options */
|
||||
if (ifp->if_hwassist) {
|
||||
m->m_pkthdr.csum_flags |= CSUM_IP_CHECKED;
|
||||
if ((cur_rx->bge_ip_csum ^ 0xffff) == 0)
|
||||
|
|
@ -1900,6 +1901,7 @@ bge_rxeof(sc)
|
|||
m->m_pkthdr.csum_flags |= CSUM_DATA_VALID;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If we received a packet with a vlan tag, pass it
|
||||
|
|
|
|||
Loading…
Reference in a new issue