1*62856425Sitojun /* $NetBSD: qop_wfq.h,v 1.2 2001/08/16 07:48:15 itojun Exp $ */ 295a65560Sthorpej /* $KAME: qop_wfq.h,v 1.2 2000/10/18 09:15:21 kjc Exp $ */ 395a65560Sthorpej /* 495a65560Sthorpej * Copyright (C) 1999-2000 595a65560Sthorpej * Sony Computer Science Laboratories, Inc. All rights reserved. 695a65560Sthorpej * 795a65560Sthorpej * Redistribution and use in source and binary forms, with or without 895a65560Sthorpej * modification, are permitted provided that the following conditions 995a65560Sthorpej * are met: 1095a65560Sthorpej * 1. Redistributions of source code must retain the above copyright 1195a65560Sthorpej * notice, this list of conditions and the following disclaimer. 1295a65560Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 1395a65560Sthorpej * notice, this list of conditions and the following disclaimer in the 1495a65560Sthorpej * documentation and/or other materials provided with the distribution. 1595a65560Sthorpej * 1695a65560Sthorpej * THIS SOFTWARE IS PROVIDED BY SONY CSL AND CONTRIBUTORS ``AS IS'' AND 1795a65560Sthorpej * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1895a65560Sthorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1995a65560Sthorpej * ARE DISCLAIMED. IN NO EVENT SHALL SONY CSL OR CONTRIBUTORS BE LIABLE 2095a65560Sthorpej * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2195a65560Sthorpej * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2295a65560Sthorpej * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2395a65560Sthorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2495a65560Sthorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2595a65560Sthorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2695a65560Sthorpej * SUCH DAMAGE. 2795a65560Sthorpej */ 2895a65560Sthorpej 2995a65560Sthorpej /* 3095a65560Sthorpej * wfq private ifinfo structure 3195a65560Sthorpej */ 3295a65560Sthorpej struct wfq_ifinfo { 3395a65560Sthorpej int hash_policy; /* hash policy */ 3495a65560Sthorpej int nqueues; /* number of queues */ 3595a65560Sthorpej int qsize; /* queue size in bytes */ 3695a65560Sthorpej }; 3795a65560Sthorpej 3895a65560Sthorpej int wfq_interface_parser(const char *ifname, int argc, char **argv); 3995a65560Sthorpej int qcmd_wfq_add_if(const char *ifname, u_int bandwidth, int hash_policy, 4095a65560Sthorpej int nqueues, int qsize); 4195a65560Sthorpej int qop_wfq_add_if(struct ifinfo **rp, const char *ifname, u_int bandwidth, 4295a65560Sthorpej int hash_policy, int nqueues, int qsize); 43