From owner-freebsd-net@freebsd.org  Wed Sep 25 14:51:11 2019
Return-Path: <owner-freebsd-net@freebsd.org>
Delivered-To: freebsd-net@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id A8EA41296B7
 for <freebsd-net@mailman.nyi.freebsd.org>;
 Wed, 25 Sep 2019 14:51:11 +0000 (UTC)
 (envelope-from kudzu@tenebras.com)
Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com
 [IPv6:2607:f8b0:4864:20::830])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 server-signature RSA-PSS (4096 bits)
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 46dgwt4g08z40ln
 for <freebsd-net@freebsd.org>; Wed, 25 Sep 2019 14:51:10 +0000 (UTC)
 (envelope-from kudzu@tenebras.com)
Received: by mail-qt1-x830.google.com with SMTP id u22so6875064qtq.13
 for <freebsd-net@freebsd.org>; Wed, 25 Sep 2019 07:51:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenebras-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=Dya3QaDO70RO3uHUs8qP3qww7GWcMG6LfbmOl8xKv7A=;
 b=RDAvvUg0zNo2e6ehAqxXHhFf6W+bIOHKCw8h/99ZQyPOfosLWR+7WQd2bJXepdgHvc
 MW2F9kg2mtw5GhiVCUn6ooLpsMrVlSjL15JfgZyZ90ojpQznw8C5nZ1jgF7IYmVbJ5sr
 mF2pJdSv0RsVrt7smIzu0nJ4ydBbeQJQ0eDbNrC4Zb/OqW4Kse2aaOoK29n3yZCvKAvs
 cDqsmaN9cWa/cb0Etwy3uu3sslqWlUscqlR3BWjBhZDM1L4U+xii2mxDneG/4rhoM+9q
 2f38IrD1OLfvBOsfbw9BdX6R0WD7iyxUx/h08B0smt8sLCHmcmzo/NhjApdDUnzPbFsa
 7pxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=Dya3QaDO70RO3uHUs8qP3qww7GWcMG6LfbmOl8xKv7A=;
 b=JFPhavgeKAQn57SuPrai4dSzuAB1BEsOi8QfKy5tyK0AsONM46FM2oK+IuA61+xGn5
 yAO43vudnpNGJHRTn/qih/i79982wgBtvODS7MoHJXtXZ78rF+pestMVcYmkNQOen6a1
 PNIYWB5KQKOqxLPtuT6WS8D1YRefogefoJAhbGpNpEAIctEgk7E2WU83a1+CxTa0ObJ0
 Xf15B7ju1nUd8rzAHDguRCpC1o0cQuiLh7v1a4gWY9lFRo36Zfib6Z/9roWAh43wH/YX
 WST/fmEjQgHgOHVB0R0LgSaxuZydv6ehC0/KGMR9xvnyrGDOI/3v2SI1OYrQRHdOuypI
 dz/g==
X-Gm-Message-State: APjAAAUkGdvHTcZB1ikJgJi3Q2TUfiKgL+4hTiPxjCBy0sq/aIjMDWy0
 XbMiWD4+VbN2goDqBFhZ/2UNYuMgDCIIYYIdWFZIC4qF6lLKxA==
X-Google-Smtp-Source: APXvYqyIDwpHJv1TaCxaU+zbn0UvWMMh1ewth7wui5shJiaQjdnR85raVFEgtuHoxnolQapLB4qUNDFpBdLYdISNqA0=
X-Received: by 2002:a0c:eda2:: with SMTP id h2mr7592268qvr.190.1569423068402; 
 Wed, 25 Sep 2019 07:51:08 -0700 (PDT)
MIME-Version: 1.0
References: <a1c0ac18-1290-a109-1c46-c8d6047cd8c1@FreeBSD.org>
 <CA+hQ2+jXxwkVMMoLMMdXU5RVqsMxfbQfNazVKTp9rB9i6z+J3A@mail.gmail.com>
In-Reply-To: <CA+hQ2+jXxwkVMMoLMMdXU5RVqsMxfbQfNazVKTp9rB9i6z+J3A@mail.gmail.com>
From: Michael Sierchio <kudzu@tenebras.com>
Date: Wed, 25 Sep 2019 07:50:32 -0700
Message-ID: <CAHu1Y72WKhk-4UTFjs7p-VRiGRPoZci90MwKasCWPoM0NGrzjg@mail.gmail.com>
Subject: Re: dummynet: bandwidth is limited to 2 Gbit/s ?
To: freebsd-net <freebsd-net@freebsd.org>
X-Rspamd-Queue-Id: 46dgwt4g08z40ln
X-Spamd-Bar: ----
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623
 header.b=RDAvvUg0; dmarc=none;
 spf=none (mx1.freebsd.org: domain of kudzu@tenebras.com has no SPF policy when
 checking 2607:f8b0:4864:20::830) smtp.mailfrom=kudzu@tenebras.com
X-Spamd-Result: default: False [-4.14 / 15.00]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000,0];
 MIME_GOOD(-0.10)[multipart/alternative,text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org];
 DMARC_NA(0.00)[tenebras.com]; RCPT_COUNT_ONE(0.00)[1];
 IP_SCORE(-2.84)[ip: (-9.35), ipnet: 2607:f8b0::/32(-2.61), asn: 15169(-2.18),
 country: US(-0.05)]; TO_DN_ALL(0.00)[];
 DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+];
 RCVD_IN_DNSWL_NONE(0.00)[0.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org
 : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[];
 SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~];
 ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
 RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Sep 2019 14:51:11 -0000

On Wed, Sep 25, 2019 at 7:10 AM Luigi Rizzo <rizzo@iet.unipi.it> wrote:

 > ...
 > An alternate, hack-ish approach would be to encode high speeds with
 > coarse granularity,
 > say speed 0x7fnnnnnn with n =3D 0.. 0xffffe representing speed in
 > Mbits/s (so that would give
 > you up to 16 Pbit/s) and reserve 0x7fffffff for the pre-existing
 > "2Gbit/s - 1" to avoid breaking
 > former userland that may pick that value.

That actually sounds like a good approach, hackish or no.
--=20

"Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is =
no
wiser, but an intelligent person requires only two thousand five hundred."

- The Mah=C4=81bh=C4=81rata