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
This commit is contained in:
parent
ad2ff705a4
commit
c15600b71a
@ -1368,7 +1368,7 @@ t4_push_tls_records(struct adapter *sc, struct toepcb *toep, int drop)
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user