svn commit: r340465 - head/sys/dev/cxgbe/tom

John Baldwin jhb at FreeBSD.org
Thu Nov 15 22:47:48 UTC 2018


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


More information about the svn-src-head mailing list