From owner-freebsd-current@freebsd.org Sat May 9 19:03:33 2020 Return-Path: Delivered-To: freebsd-current@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 B2CE82F36BF for ; Sat, 9 May 2020 19:03:33 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49KGnJ5SS8z4DGm for ; Sat, 9 May 2020 19:03:32 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from mbp.fritz.box (ip4d16e760.dynamic.kabel-deutschland.de [77.22.231.96]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id A444D722D3922; Sat, 9 May 2020 21:03:03 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Error loading tcp_bbr kernel module From: Michael Tuexen In-Reply-To: <20200509160714.GA38490@lion.0xfce3.net> Date: Sat, 9 May 2020 21:03:02 +0200 Cc: FreeBSD CURRENT , david@catwhisker.org Content-Transfer-Encoding: quoted-printable Message-Id: <3B396584-1018-46ED-B7F9-35215B4AF17C@freebsd.org> References: <20200509121851.GA59530@lion.0xfce3.net> <24D28CC3-AA45-412F-AF3D-9697A36FCB8D@freebsd.org> <20200509160714.GA38490@lion.0xfce3.net> To: Gordon Bergling X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 49KGnJ5SS8z4DGm X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.93 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.95)[-0.951,0]; ASN(0.00)[asn:680, ipnet:193.174.0.0/15, country:DE]; NEURAL_HAM_LONG(-0.97)[-0.975,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.32 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2020 19:03:33 -0000 > On 9. May 2020, at 18:07, Gordon Bergling = wrote: >=20 > Hi Michael, >=20 > On Sat, May 09, 2020 at 05:42:55PM +0200, Michael Tuexen wrote: >>> On 9. May 2020, at 16:25, Gordon Bergling = wrote: >>> I tried tcp_rack and tcp_bbr, since both are separate TCP stacks. I = just posted the wrong error message. Both TCP stacks weren=E2=80=99t = loadable as a kernel module with just the former mentioned build option. >>>=20 >>> I currently have build running with both kernel options you = mentioned. >>>=20 >>> If the build is successful and I can change the default TCP stack to = RACK and BBR I let you know. >> That would be great. I have them running on my machines, but I might = have missed something. >>>=20 >>> Further I didn=E2=80=99t find any documentation within tcp(4) = regarding RACK and BBR. Since I am about to enhance the manpages, I=E2=80=99= ll extent tcp(4) about information about RACK and BBR, but this is a = different topic. >>>=20 >> Yes it is. And I would suggest to use separate man pages, a single = one for each stack. >> The the generic man page might refer to them... >=20 > My first thoughts on this topic were about to extent tcp(4) and create = links to > tcp_rack(4) and tcp_bbr(4), but separate manpages maybe the way to go. = I just > have to investigate the respective details. I was once very deep into = TCP/IP,=20 > while building perimeter firewalls with FreeBSD, but this was 20 years = ago. >=20 > I add you as a reviever for the differential once I have a rough cut=20= > for the manpages ready. Hi Gordon, please do so. Don't forget to add rrs@, since he wrote both stacks. Best regards Michael >=20 > Best regards, >=20 > Gordon >=20 >>>> Am 09.05.2020 um 14:37 schrieb Michael Tuexen : >>>>> On 9. May 2020, at 14:18, Gordon Bergling = wrote: >>>>>=20 >>>>> Greetings, >>>>>=20 >>>>> I build -CURRENT with WITH_EXTRA_TCP_STACKS=3D1, but I got the = following error >>>>> when I try to load for example tcp_bbr.ko. >>>>> z >>>>> kldload: an error occurred while loading module tcp_rack.ko. = Please check dmesg(8) for more details. >>>> This indicates that you want to load the RACK stack. >>>>=20 >>>> Please note that you need for BBR and RACK: >>>> options TCPHPTS >>>> in the kernel config and in addition to that for RACK >>>> options RATELIMIT >>>>=20 >>>>> dmesg shows: >>>>>=20 >>>>> KLD tcp_bbr.ko: depends on tcphpts - not available or version = mismatch >>>>> linker_load_file: /boot/kernel/tcp_bbr.ko - unsupported file type >>>>>=20 >>>>> Any hints on solving the problem? >>>>>=20 >>>>> The kernel config is GENERIC. >>>>>=20 >>>>> Best regards, >>>>>=20 >>>>> Gordon