Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2014 16:52:53 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: ipfw pipe config bw tun0
Message-ID:  <CA%2BhQ2%2BgREg_L4Ar021EOSjcc9xPOPinpDeTefpP0B4zz4%2B0_Nw@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1406291615530.88662@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1406291615530.88662@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BgREg_L4Ar021EOSjcc9xPOPinpDeTefpP0B4zz4%2B0_Nw>