diff options
author | yongari <yongari@FreeBSD.org> | 2009-07-09 01:58:59 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-07-09 01:58:59 +0000 |
commit | 2706e21f2c2e081ec96cde8bfe4e71021535961e (patch) | |
tree | 1ee378c440eb4833c858e87ebb79f2d648466655 /sys/dev/xl/if_xl.c | |
parent | 96daf5ca1b19a8e2527a847179681b3eb2b5bade (diff) | |
download | FreeBSD-src-2706e21f2c2e081ec96cde8bfe4e71021535961e.zip FreeBSD-src-2706e21f2c2e081ec96cde8bfe4e71021535961e.tar.gz |
Make xl(4) build with Tx checksum offload.
PR: kern/136409
Approved by: re (kib)
Diffstat (limited to 'sys/dev/xl/if_xl.c')
-rw-r--r-- | sys/dev/xl/if_xl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c index 81ed592..3b330a9 100644 --- a/sys/dev/xl/if_xl.c +++ b/sys/dev/xl/if_xl.c @@ -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 |