diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2010-08-29 18:50:30 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2010-08-29 18:50:30 +0000 |
commit | 9c7635e18b98078a74f35d3c14f7bd5418920f55 (patch) | |
tree | c683856a6c329e114bb11002250dfde16a196871 /sys/netinet/sctp_crc32.h | |
parent | 7eeda62ca92329b3b4eaedad61e03c782bc5e38a (diff) | |
download | src-9c7635e18b98078a74f35d3c14f7bd5418920f55.tar.gz src-9c7635e18b98078a74f35d3c14f7bd5418920f55.zip |
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
Notes
Notes:
svn path=/head/; revision=211969
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 e66815ee5172..eb7a1bc7a8e0 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__ */ |