diff options
author | tuexen <tuexen@FreeBSD.org> | 2010-08-29 18:50:30 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2010-08-29 18:50:30 +0000 |
commit | ff0f13be619dafe05ca0a216f79368d4c793a420 (patch) | |
tree | c683856a6c329e114bb11002250dfde16a196871 /sys/netinet/sctp_crc32.h | |
parent | c7313507efc899f693f73ecc1b97b23563178ad5 (diff) | |
download | FreeBSD-src-ff0f13be619dafe05ca0a216f79368d4c793a420.zip FreeBSD-src-ff0f13be619dafe05ca0a216f79368d4c793a420.tar.gz |
Fix the the SCTP_WITH_NO_CSUM option when used in combination with
interface supporting CRC offload. While at it, make use of the
feature that the loopback interface provides CRC offloading.
MFC after: 4 weeks
Diffstat (limited to 'sys/netinet/sctp_crc32.h')
-rw-r--r-- | sys/netinet/sctp_crc32.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/sctp_crc32.h b/sys/netinet/sctp_crc32.h index e66815e..eb7a1bc 100644 --- a/sys/netinet/sctp_crc32.h +++ b/sys/netinet/sctp_crc32.h @@ -36,11 +36,12 @@ __FBSDID("$FreeBSD$"); #ifndef __crc32c_h__ #define __crc32c_h__ -#if defined(_KERNEL) || defined(__Userspace__) - +#if defined(_KERNEL) +#if !defined(SCTP_WITH_NO_CSUM) uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); + +#endif void sctp_delayed_cksum(struct mbuf *, uint32_t offset); #endif /* _KERNEL */ - #endif /* __crc32c_h__ */ |