/* $NetBSD: qop_cbq.h,v 1.5 2024/12/24 08:35:28 ozaki-r Exp $ */
/* $KAME: qop_cbq.h,v 1.2 2000/10/18 09:15:18 kjc Exp $ */
/*
* Copyright (c) Sun Microsystems, Inc. 1993-1998 All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the SMCC Technology
* Development Group at Sun Microsystems, Inc.
*
* 4. The name of the Sun Microsystems, Inc nor may not be used to endorse or
* promote products derived from this software without specific prior
* written permission.
*
* SUN MICROSYSTEMS DOES NOT CLAIM MERCHANTABILITY OF THIS SOFTWARE OR THE
* SUITABILITY OF THIS SOFTWARE FOR ANY PARTICULAR PURPOSE. The software is
* provided "as is" without express or implied warranty of any kind.
*
* These notices must be retained in any copies of any part of this software.
*/
/*
* cbq private ifinfo structure
*/
struct cbq_ifinfo {
struct classinfo *root_class; /* root class */
struct classinfo *default_class; /* default class */
struct classinfo *ctl_class; /* control class */
double psPerByte; /* bandwidth in ps per sec */
int is_wrr; /* use weighted-round robin */
int is_efficient; /* use work-conserving */
bool no_control; /* don't create a control class automatically */
};
/*
* cbq private classinfo structure
*/
struct cbq_classinfo {
uint64_t bandwidth; /* bandwidth in bps */
uint64_t allocated; /* bandwidth used by children */