Make xl(4) build with Tx checksum offload.
PR: kern/136409 Approved by: re (kib)
This commit is contained in:
parent
96daf5ca1b
commit
2706e21f2c
@ -2471,12 +2471,12 @@ xl_encap(struct xl_softc *sc, struct xl_chain *c, struct mbuf **m_head)
|
||||
status = XL_TXSTAT_RND_DEFEAT;
|
||||
|
||||
#ifndef XL905B_TXCSUM_BROKEN
|
||||
if (m_head->m_pkthdr.csum_flags) {
|
||||
if (m_head->m_pkthdr.csum_flags & CSUM_IP)
|
||||
if ((*m_head)->m_pkthdr.csum_flags) {
|
||||
if ((*m_head)->m_pkthdr.csum_flags & CSUM_IP)
|
||||
status |= XL_TXSTAT_IPCKSUM;
|
||||
if (m_head->m_pkthdr.csum_flags & CSUM_TCP)
|
||||
if ((*m_head)->m_pkthdr.csum_flags & CSUM_TCP)
|
||||
status |= XL_TXSTAT_TCPCKSUM;
|
||||
if (m_head->m_pkthdr.csum_flags & CSUM_UDP)
|
||||
if ((*m_head)->m_pkthdr.csum_flags & CSUM_UDP)
|
||||
status |= XL_TXSTAT_UDPCKSUM;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user