Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Use IFQ_SET_MAXLEN() rather than open-coding it.
details: https://anonhg.NetBSD.org/src/rev/f9892cb1cdcb
branches: trunk
changeset: 369670:f9892cb1cdcb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Aug 27 19:17:08 2022 +0000
description:
Use IFQ_SET_MAXLEN() rather than open-coding it.
diffstat:
sys/net/if_sl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 54bb897cfc53 -r f9892cb1cdcb sys/net/if_sl.c
--- a/sys/net/if_sl.c Sat Aug 27 19:15:00 2022 +0000
+++ b/sys/net/if_sl.c Sat Aug 27 19:17:08 2022 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index