From owner-freebsd-net@freebsd.org Wed Feb 24 10:50:36 2021 Return-Path: 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 8BF9F5585BF for ; Wed, 24 Feb 2021 10:50:36 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dlt4D3Smxz4pFl for ; Wed, 24 Feb 2021 10:50:36 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 62C0C8E9B for ; Wed, 24 Feb 2021 10:50:36 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-lj1-f178.google.com with SMTP id r23so1881408ljh.1 for ; Wed, 24 Feb 2021 02:50:36 -0800 (PST) X-Gm-Message-State: AOAM531m0r0HovwgLkUHODIFNYyi+DXKzfPmhfBwaID9e3IXj3GTvI+5 f3uz301Oh1GmJs1rqOQHSoUxly6jeNNriAjNKMs= X-Google-Smtp-Source: ABdhPJxEISUMZ8ExCEg15go7t0sM2GioHsNtyfBdupmMyo5ixUB52mWtrSbCR36BHrSjsKu91mv8rLrbD+4r2ocTpkA= X-Received: by 2002:a2e:3014:: with SMTP id w20mr20261444ljw.64.1614163834961; Wed, 24 Feb 2021 02:50:34 -0800 (PST) MIME-Version: 1.0 References: <5670cd9a-cd10-2b89-1347-97a6c817c50f@sentex.net> <8696072a-dc25-8eff-04fa-4d1db13bf5cc@plan-b.pwste.edu.pl> <3588111612809020@mail.yandex.ru> <53ef5715-42ce-aad0-9a8b-11d91a9891e3@plan-b.pwste.edu.pl> <301391612827263@mail.yandex.ru> <2642181612914660@mail.yandex.ru> <2951613086198@mail.yandex.ru> <7121614026888@mail.yandex.ru> <7056db64-2e7f-6ad8-54a3-59ff406061cf@plan-b.pwste.edu.pl> In-Reply-To: <7056db64-2e7f-6ad8-54a3-59ff406061cf@plan-b.pwste.edu.pl> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Wed, 24 Feb 2021 11:50:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: option FIB_ALGO and dpdk_lpm4 To: Marek Zarychta Cc: "Alexander V. Chernikov" , freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 10:50:36 -0000 On Wed, Feb 24, 2021 at 1:22 AM Marek Zarychta < zarychtam@plan-b.pwste.edu.pl> wrote: > > > > > Please let me ask only one final question. Does adding: > > net.route.algo.inet.algo=dpdk_lpm4 > net.route.algo.inet6.algo=dpdk_lpm6 > > to /etc/sysctl.conf make any sense? I see that right FIB_ALGO is > automatically picked up when the module is available. > > > My understanding is the network stack will switch to the optimum algorithm regarding the number of routes installed. cf "Automatic algorithm selection" chapter here: https://reviews.freebsd.org/D27401 So you don't need to set this sysctl. Regards, Olivier