Module Name: src
Committed By: thorpej
Date: Sat Aug 27 19:17:09 UTC 2022
Modified Files:
src/sys/net: if_sl.c
Log Message:
Use IFQ_SET_MAXLEN() rather than open-coding it.
To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/sys/net/if_sl.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_sl.c
diff -u src/sys/net/if_sl.c:1.132 src/sys/net/if_sl.c:1.133
--- src/sys/net/if_sl.c:1.132 Wed Jan 29 04:28:27 2020
+++ src/sys/net/if_sl.c Sat Aug 27 19:17:08 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sl.c,v 1.132 2020/01/29 04:28:27 thorpej Exp $ */
+/* $NetBSD: if_sl.c,v 1.133 2022/08/27 19:17:08 thorpej Exp $ */
/*
* Copyright (c) 1987, 1989, 1992, 1993
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sl.c,v 1.132 2020/01/29 04:28:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sl.c,v 1.133 2022/08/27 19:17:08 thorpej Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -269,7 +269,7 @@ sl_clone_create(struct if_clone *ifc, in
sc->sc_if.if_ioctl = slioctl;
sc->sc_if.if_output = sloutput;
sc->sc_if.if_dlt = DLT_SLIP;
- sc->sc_fastq.ifq_maxlen = 32;
+ IFQ_SET_MAXLEN(&sc->sc_fastq, 32);
IFQ_SET_READY(&sc->sc_if.if_snd);
if_attach(&sc->sc_if);
if_alloc_sadl(&sc->sc_if);