diff options
author | jch <jch@FreeBSD.org> | 2016-11-07 18:29:21 +0000 |
---|---|---|
committer | jch <jch@FreeBSD.org> | 2016-11-07 18:29:21 +0000 |
commit | 3b5cc25eb30f8708b04139fd3ff550590382c6ad (patch) | |
tree | d8499cf3cfdbc508d05cb419e12bc98beae55c48 /sys/netinet | |
parent | 664c82e536131bd88cdfa97cb2b4859c20f222a4 (diff) | |
download | FreeBSD-src-3b5cc25eb30f8708b04139fd3ff550590382c6ad.zip FreeBSD-src-3b5cc25eb30f8708b04139fd3ff550590382c6ad.tar.gz |
MFC r307966:
Remove an extraneous call to soisconnected() in syncache_socket(),
introduced with r261242. The useful and expected soisconnected()
call is done in tcp_do_segment().
Has been found as part of unrelated PR:212920 investigation.
Improve slightly (~2%) the maximum number of TCP accept per second.
Tested by: kevin.bowling_kev009.com, jch
Approved by: gnn, hiren
MFC after: 1 week
Sponsored by: Verisign, Inc
Differential Revision: https://reviews.freebsd.org/D8072
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index f4d15f4..74a84c7 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -918,10 +918,6 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m) tp->t_keepcnt = sototcpcb(lso)->t_keepcnt; tcp_timer_activate(tp, TT_KEEP, TP_KEEPINIT(tp)); - if ((so->so_options & SO_ACCEPTFILTER) == 0) { - soisconnected(so); - } - TCPSTAT_INC(tcps_accepts); return (so); |