From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 29 16:29:45 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1DC7D20 for ; Sun, 29 Jun 2014 16:29:45 +0000 (UTC) Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 829E4260B for ; Sun, 29 Jun 2014 16:29:45 +0000 (UTC) Received: by mail-qg0-f42.google.com with SMTP id e89so1180082qgf.29 for ; Sun, 29 Jun 2014 09:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=PtL1dGKu50YcxVbfFP6jCd9ZkO6J0RT+lrBV0tyb12I=; b=RbsIcr6MYeYC01TUgqCRvJxkBdPnmVA7qmqgfSVD1IUf3f9nK1VawWRdRtuMbxqpWv xOENyH16ZkWctQKC+hyg+SfvrknL0+6Rd6bInusuc3x5HYSmU1eYvG9kTp+1HbBTC/Bu vftgvTS8NGLVHe/Fj1VQMHj7tuxXU9oBFZKK4o/MjCxDauqNZPYkRmKI9jtgU1AfJ+zB +IEkjzFf/FtUHCOvTZwoY/UD89EgRs3nZghyQAgCBsHertFVCKvVUsyN5jeagusAM9Sa GGH43WfJm4I1IsO05PpwEpdcE4985vqGPfe4TKgLrNZl2OBxngmY9rCuAxOhmxHd0bMF aFfA== MIME-Version: 1.0 X-Received: by 10.140.22.134 with SMTP id 6mr48928969qgn.4.1404059384407; Sun, 29 Jun 2014 09:29:44 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Sun, 29 Jun 2014 09:29:44 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Jun 2014 09:29:44 -0700 X-Google-Sender-Auth: k6k_XlPMr-X-fz9R63JssZ4m6x8 Message-ID: Subject: Re: ipfw pipe config bw tun0 From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 Cc: Wojciech Puchar , "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2014 16:29:45 -0000 We can start adding that. How should it behave for multi-queue devices? -a On 29 June 2014 07:52, Luigi Rizzo wrote: > On Sun, Jun 29, 2014 at 4:16 PM, Wojciech Puchar < > wojtek@wojtek.tensor.gdynia.pl> wrote: > >> i tried to use ipfw dummynet as described in manual >> >> --- >> If a device name is specified instead of a numeric value, as in >> >> ipfw pipe 1 config bw tun0 >> >> then the transmit clock is supplied by the specified device. >> At >> the moment only the tun(4) device supports this functionality, >> for use in conjunction with ppp(8). >> >> ---- >> >> >> got "no if support" error message. what i missed? >> > > you missed nothing -- it's just that no device that i know > of still implements the feature. > i implemented it 15 years ago and enabled it on the 'ed' > device driver only. > > What it needed is a notification on the transmit > interrupt to kick the pipe and tell it how many > packets went out (at the time 'ed' only supported > one packet at a time, so the code might make > assumptions). > > It might need a bit of redesign these days to make it > work efficiently with fast pipes and deep interface queues. > > cheers > luigi > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"