diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-05-26 09:16:33 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-05-26 09:16:33 +0000 |
commit | 520d26f3510f067751884cbed2119886a87524f2 (patch) | |
tree | 554e1e0abe24881cf9e9c67857dda17d3a772d9c /sys/netinet6/sctp6_usrreq.c | |
parent | 713e6f8d0c0acc47cc23d4c2731c1383d85daf33 (diff) | |
download | FreeBSD-src-520d26f3510f067751884cbed2119886a87524f2.zip FreeBSD-src-520d26f3510f067751884cbed2119886a87524f2.tar.gz |
Get rid of SCTP specific code to avoid CRC32C computations on loopback.
Just just offloading.
MFC after: 3 days
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index dc68b83..ef792ee 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -150,11 +150,6 @@ sctp6_input(struct mbuf **i_pak, int *offp, int proto) goto sctp_skip_csum; } check = sh->checksum; /* save incoming checksum */ - if ((check == 0) && (SCTP_BASE_SYSCTL(sctp_no_csum_on_loopback)) && - (IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &ip6->ip6_dst))) { - SCTP_STAT_INCR(sctps_recvnocrc); - goto sctp_skip_csum; - } sh->checksum = 0; /* prepare for calc */ calc_check = sctp_calculate_cksum(m, iphlen); SCTP_STAT_INCR(sctps_recvswcrc); |