git: 43bcc15a4270 - stable/13 - ktls: Refer send tag pointer once.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 14 Jun 2022 09:40:24 UTC
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=43bcc15a4270a3d9247a57c9f92b30c672e4dd13

commit 43bcc15a4270a3d9247a57c9f92b30c672e4dd13
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-05-25 12:16:27 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-06-14 09:39:23 +0000

    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
    Sponsored by:   NVIDIA Networking
    
    (cherry picked from commit f0fca64618045bba23f4d61a377b64f9acb96220)
---
 sys/kern/uipc_ktls.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index fa01113c7c8e..f6190e24a6b2 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -1480,10 +1480,11 @@ ktls_modify_txrtlmt(struct ktls_session *tls, uint64_t max_pacing_rate)
 		return (0);
 	}
 
-	MPASS(tls->snd_tag != NULL);
-	MPASS(tls->snd_tag->type == IF_SND_TAG_TYPE_TLS_RATE_LIMIT);
-
 	mst = tls->snd_tag;
+
+	MPASS(mst != NULL);
+	MPASS(mst->type == IF_SND_TAG_TYPE_TLS_RATE_LIMIT);
+
 	ifp = mst->ifp;
 	return (ifp->if_snd_tag_modify(mst, &params));
 }