Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2018 22:47:47 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340465 - head/sys/dev/cxgbe/tom
Message-ID:  <201811152247.wAFMllYL050114@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Nov 15 22:47:47 2018
New Revision: 340465
URL: https://svnweb.freebsd.org/changeset/base/340465

Log:
  Use sbsndptr_adv() instead of sbsndptr() for TOE TLS.
  
  For TOE TLS, we just want to advance the send pointer to skip over the
  record just sent to the TOE.  The recently added sbsndptr_adv() is
  sufficient for that and is cheaper.
  
  MFC after:	1 month
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/dev/cxgbe/tom/t4_tls.c

Modified: head/sys/dev/cxgbe/tom/t4_tls.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_tls.c	Thu Nov 15 20:28:35 2018	(r340464)
+++ head/sys/dev/cxgbe/tom/t4_tls.c	Thu Nov 15 22:47:47 2018	(r340465)
@@ -1368,7 +1368,7 @@ t4_push_tls_records(struct adapter *sc, struct toepcb 
 		tp->snd_max += plen;
 
 		SOCKBUF_LOCK(sb);
-		sbsndptr(sb, tls_ofld->sb_off, plen, &sndptroff);
+		sbsndptr_adv(sb, sb->sb_sndptr, plen);
 		tls_ofld->sb_off += plen;
 		SOCKBUF_UNLOCK(sb);
 



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