Module Name:    src
Committed By:   thorpej
Date:           Tue Nov 14 02:29:11 UTC 2023

Modified Files:
        src/sys/net [thorpej-altq-separation]: if_wg.c

Log Message:
Update for the new location of altq_flags (not in if_snd directly).


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.77.2.1 src/sys/net/if_wg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_wg.c
diff -u src/sys/net/if_wg.c:1.77 src/sys/net/if_wg.c:1.77.2.1
--- src/sys/net/if_wg.c:1.77	Tue Aug  1 07:04:16 2023
+++ src/sys/net/if_wg.c	Tue Nov 14 02:29:11 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_wg.c,v 1.77 2023/08/01 07:04:16 mrg Exp $	*/
+/*	$NetBSD: if_wg.c,v 1.77.2.1 2023/11/14 02:29:11 thorpej Exp $	*/
 
 /*
  * Copyright (C) Ryota Ozaki <ozaki.ry...@gmail.com>
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.77 2023/08/01 07:04:16 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.77.2.1 2023/11/14 02:29:11 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_altq_enabled.h"
@@ -3852,7 +3852,7 @@ wg_output(struct ifnet *ifp, struct mbuf
 	}
 
 #ifdef ALTQ
-	bool altq = atomic_load_relaxed(&ifp->if_snd.altq_flags)
+	bool altq = atomic_load_relaxed(&ifp->if_snd.ifq_altq->altq_flags)
 	    & ALTQF_ENABLED;
 	if (altq)
 		IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family);

Reply via email to