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/53628026dbdc
branches: trunk
changeset: 369672:53628026dbdc
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Aug 27 19:21:23 2022 +0000
description:
Use IFQ_SET_MAXLEN() rather than open-coding it.
diffstat:
sys/net/if_spppsubr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r a7b4899f15e2 -r 53628026dbdc sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c Sat Aug 27 19:19:10 2022 +0000
+++ b/sys/net/if_spppsubr.c Sat Aug 27 19:21:23 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.262 2022/03/07 04:06:20 knakahara Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.263 2022/08/27 19:21:23 thorpej Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.262 2022/03/07 04:06:20 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.263 2022/08/27 19:21:23 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -1078,8 +1078,8 @@
sp->pp_if.if_type = IFT_PPP;
sp->pp_if.if_output = sppp_output;
- sp->pp_fastq.ifq_maxlen = 32;
- sp->pp_cpq.ifq_maxlen = 20;
+ IFQ_SET_MAXLEN(&sp->pp_fastq, 32);
+ IFQ_SET_MAXLEN(&sp->pp_cpq, 20);
sp->pp_loopcnt = 0;
sp->pp_alivecnt = 0;
sp->pp_alive_interval = SPPP_ALIVE_INTERVAL;
Home |
Main Index |
Thread Index |
Old Index