Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/altq altq, cbq: allow no control class
details: https://anonhg.NetBSD.org/src/rev/6c7807c75f80
branches: trunk
changeset: 1022357:6c7807c75f80
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Jul 14 08:27:59 2021 +0000
description:
altq, cbq: allow no control class
diffstat:
sys/altq/altq_cbq.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r fc86489dfcab -r 6c7807c75f80 sys/altq/altq_cbq.c
--- a/sys/altq/altq_cbq.c Wed Jul 14 07:47:23 2021 +0000
+++ b/sys/altq/altq_cbq.c Wed Jul 14 08:27:59 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: altq_cbq.c,v 1.32 2018/11/15 10:23:55 maxv Exp $ */
+/* $NetBSD: altq_cbq.c,v 1.33 2021/07/14 08:27:59 ozaki-r Exp $ */
/* $KAME: altq_cbq.c,v 1.21 2005/04/13 03:44:24 suz Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altq_cbq.c,v 1.32 2018/11/15 10:23:55 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altq_cbq.c,v 1.33 2021/07/14 08:27:59 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_altq.h"
@@ -836,14 +836,11 @@
switch (enable) {
case ENABLE:
- if (cbqp->ifnp.root_ == NULL || cbqp->ifnp.default_ == NULL ||
- cbqp->ifnp.ctl_ == NULL) {
+ if (cbqp->ifnp.root_ == NULL || cbqp->ifnp.default_ == NULL) {
if (cbqp->ifnp.root_ == NULL)
printf("No Root Class for %s\n", ifacename);
if (cbqp->ifnp.default_ == NULL)
printf("No Default Class for %s\n", ifacename);
- if (cbqp->ifnp.ctl_ == NULL)
- printf("No Control Class for %s\n", ifacename);
error = EINVAL;
} else if ((error = altq_enable(cbqp->ifnp.ifq_)) == 0) {
cbqp->cbq_qlen = 0;
Home |
Main Index |
Thread Index |
Old Index