diff options
author | rrs <rrs@FreeBSD.org> | 2009-02-14 11:34:57 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2009-02-14 11:34:57 +0000 |
commit | d22f1350d2b99a2c94df984d76b37089bc7d610a (patch) | |
tree | b713f25db67c27ccf45455a371f2dd7e0322ff44 /sys/netinet/sctp_crc32.h | |
parent | 5537532d1b2a9b8013d0af30efa778a7bb45f788 (diff) | |
download | FreeBSD-src-d22f1350d2b99a2c94df984d76b37089bc7d610a.zip FreeBSD-src-d22f1350d2b99a2c94df984d76b37089bc7d610a.tar.gz |
This commit fixes the issue with alias_sctp.c. No
longer do we require SCTP to be in the kernel for the
lib to be able to handle SCTP. We do this by moving
the CRC32c checksum into libkern/crc32.c and then adjusting
all routines to use the common methods. Note that this
will improve the performance of iSCSI since they were
using the old single 256 bit table lookup versus the
slicing 8 algorithm (which gives a 4x speed up in
CRC32c calculation :-D)
Reviewed by:rwatson, gnn, scottl, paolo
MFC after: 4 week? (assuming we MFC the alias_sctp changes)
Diffstat (limited to 'sys/netinet/sctp_crc32.h')
-rw-r--r-- | sys/netinet/sctp_crc32.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/sctp_crc32.h b/sys/netinet/sctp_crc32.h index 2c353d2..44196b1 100644 --- a/sys/netinet/sctp_crc32.h +++ b/sys/netinet/sctp_crc32.h @@ -37,10 +37,9 @@ __FBSDID("$FreeBSD$"); #define __crc32c_h__ #if defined(_KERNEL) || defined(__Userspace__) + uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); void sctp_delayed_cksum(struct mbuf *); -uint32_t update_crc32(uint32_t, unsigned char *, unsigned int); -uint32_t sctp_finalize_crc32(uint32_t); #endif /* _KERNEL */ |