ktls: Refer send tag pointer once.
So that the asserts and the actual code see the same values. Differential revision: https://reviews.freebsd.org/D32356 MFC after: 1 week Sponsored by: NVIDIA Networking
This commit is contained in:
parent
cb27627968
commit
f0fca64618
@ -1615,10 +1615,11 @@ ktls_modify_txrtlmt(struct ktls_session *tls, uint64_t max_pacing_rate)
|
||||
return (0);
|
||||
}
|
||||
|
||||
MPASS(tls->snd_tag != NULL);
|
||||
MPASS(tls->snd_tag->sw->type == IF_SND_TAG_TYPE_TLS_RATE_LIMIT);
|
||||
|
||||
mst = tls->snd_tag;
|
||||
|
||||
MPASS(mst != NULL);
|
||||
MPASS(mst->sw->type == IF_SND_TAG_TYPE_TLS_RATE_LIMIT);
|
||||
|
||||
return (mst->sw->snd_tag_modify(mst, ¶ms));
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user