Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Oct 2016 15:19:19 +0000 (UTC)
From:      Julien Charbon <jch@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307966 - head/sys/netinet
Message-ID:  <201610261519.u9QFJJ9G082523@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jch
Date: Wed Oct 26 15:19:18 2016
New Revision: 307966
URL: https://svnweb.freebsd.org/changeset/base/307966

Log:
  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

Modified:
  head/sys/netinet/tcp_syncache.c

Modified: head/sys/netinet/tcp_syncache.c
==============================================================================
--- head/sys/netinet/tcp_syncache.c	Wed Oct 26 15:18:08 2016	(r307965)
+++ head/sys/netinet/tcp_syncache.c	Wed Oct 26 15:19:18 2016	(r307966)
@@ -918,10 +918,6 @@ syncache_socket(struct syncache *sc, str
 	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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610261519.u9QFJJ9G082523>