From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 29 14:52:56 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 4CCC8146 for ; Sun, 29 Jun 2014 14:52:56 +0000 (UTC) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (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 C7B072F1E for ; Sun, 29 Jun 2014 14:52:55 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id u10so5135549lbd.22 for ; Sun, 29 Jun 2014 07:52:53 -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=0+/vxOy+GqhDQRTPLcUqOev7NNnm5MnYqn5sKAG789w=; b=Rk8phyEMVZ2MCjJ72iFFTLQlonyIuOZjG4b00cyuNWqCuYJ2vIU/tF5fm7EGuZegYy JifdANLMGAgPEjMkum+NHTTstrZ6+3/lhwMfdePK0bX5N9HVFMn+255pIf3GqzHssije 83G9wgT5ChXMc0X7r6MXB3sMXsBf4ffYmytazl7LYh6PRjfzWvR9hkCUSNt7+C9/2Tvf Ngba3UkIG26NMI3Xz2chcTGWk5UPzMQeZYE0yIwhvijSvHq/dYk6ZTLvi6Xuju2HpnTt Btr3cPWLE1YvO+I77+utXpvqeGvzgyyee2XTq8+YLETxyFmC0N/ukk+oqOpzmca1CDcJ 4InA== MIME-Version: 1.0 X-Received: by 10.112.155.230 with SMTP id vz6mr1258444lbb.73.1404053573479; Sun, 29 Jun 2014 07:52:53 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.22.100 with HTTP; Sun, 29 Jun 2014 07:52:53 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Jun 2014 16:52:53 +0200 X-Google-Sender-Auth: Wszc_O_uCCvZI_SYniZfK8cQ4xg Message-ID: Subject: Re: ipfw pipe config bw tun0 From: Luigi Rizzo To: Wojciech Puchar Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: "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 14:52:56 -0000 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 functionalit= y, > for use in conjunction with ppp(8). > > ---- > > > got "no if support" error message. what i missed? > you missed =E2=80=8Bnothing -- 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).=E2=80=8B It might need a bit of redesign these days to make it work efficiently with fast pipes and deep interface queues. cheers luigi