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
This commit is contained in:
Julien Charbon 2016-10-26 15:19:18 +00:00
parent 0c5434ae58
commit f1ee30ccd6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307966

View File

@ -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);