svn commit: r342655 - stable/12/sys/dev/cxgbe/tom
John Baldwin
jhb at FreeBSD.org
Mon Dec 31 21:55:14 UTC 2018
Author: jhb
Date: Mon Dec 31 21:55:12 2018
New Revision: 342655
URL: https://svnweb.freebsd.org/changeset/base/342655
Log:
MFC 340465: 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.
Modified:
stable/12/sys/dev/cxgbe/tom/t4_tls.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/tom/t4_tls.c
==============================================================================
--- stable/12/sys/dev/cxgbe/tom/t4_tls.c Mon Dec 31 18:11:04 2018 (r342654)
+++ stable/12/sys/dev/cxgbe/tom/t4_tls.c Mon Dec 31 21:55:12 2018 (r342655)
@@ -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-all
mailing list