From nobody Thu Jun 15 05:23:34 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QhW0k3QRNz4dmkC; Thu, 15 Jun 2023 05:23:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QhW0k2xr0z3nS5; Thu, 15 Jun 2023 05:23:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686806614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I5IN2mdQ095Qe2rd1PFDx0iFikNQoNpaqfCeU9qnBUs=; b=A1LIoVxpIf2RAFxJtnqCi/1A8WFOku0bvcnd03+AZi5AN+IaSYo6uM7pTgwcnQb0pZCnNd pJwc4b/gQlblQeN28WRIy4/g5TzkhFTwDWMWr8OZd4T1nbqinvpsnMmjCDml8qeQPRYo/i rGv262UsF/w30U/LpLfZdZM+S5cd7pR7R29aZO9+eYbFvvpxNkhtdxEuJR/TyABm3qWOzb 7FcgeMkUjq+DDq/fjcEPfcTk4YHQHNu5G6RBvW7Mto99QOPwEfSJqoy+VUCeSHX92iWr1L 5eQkTJ3+C6Y4n9gkoHl1KolcxthC2Y1+gj/6SvT6Z3GBFroN7rM08DArOBpZOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686806614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I5IN2mdQ095Qe2rd1PFDx0iFikNQoNpaqfCeU9qnBUs=; b=KgSQQc7/JeOLO+XpEGO9j6zItNYbmGyRy6D0aehcrpBAjCh0TuW4EU0YpztxIge7kciJBI +31tBgULJ4RsH0O59rcVkue7UMQm7R4PRcaBwfDQiCtCtmLWs+hHgr3hg5kqk9x66sIYLI 5ZFo8N2OPY46MQ/daHl9FZklV75qXxPARVpWZq3aNWyriJ4okOp2gKwgvhGrMy34taag7v bcdkR5ypxsilt6MKU6XAR5AfAv57GIdT/pSlvOmwtXyz9m/KifSaiJyqiat+NHhLnAGiJI zpFdTXQNDoedapVtFq8p06aFwE3J/RcruNXYK/3jPuofdfhHbAt3Pjllt1XSuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686806614; a=rsa-sha256; cv=none; b=NXXS5YeiuWG49+aBjpbaFmgWUFCB9DXtt2syeQHVODHBPjZfVzIokl4QF6iiFYTbFG59J3 /Cp3NxW3W8NavE+IRq8KKEuFvahVVquf4BNrw9aLdu4eYoynQlVKqhV4V8saVmyYNuE7fu Jw3NC03vQAeyLq3lh7oMVVbnlYkJJMeforJt5IkAl1OEFBY7ViVuWWsY6TF/0zJ3abXqRv wi+cG8PutgkstJN3FE3JBLVwmpHVO/efz/m3S8JuAddZbKvcuI6imkwIkpzOF4EfcGVFON U1SN5JAwu6GlypeH+dpopOjIReNGEhRAVuCWckZscjOgBAzyVnuISO6X9OyYOw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QhW0k2086zY1V; Thu, 15 Jun 2023 05:23:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35F5NYuL081197; Thu, 15 Jun 2023 05:23:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35F5NY6b081196; Thu, 15 Jun 2023 05:23:34 GMT (envelope-from git) Date: Thu, 15 Jun 2023 05:23:34 GMT Message-Id: <202306150523.35F5NY6b081196@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Marko Zec Subject: git: 32b28e3ae28f - main - route.8: mention DXR in FIB_ALGO section List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zec X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 32b28e3ae28f4d48520ada6ca703b508da8761a7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zec: URL: https://cgit.FreeBSD.org/src/commit/?id=32b28e3ae28f4d48520ada6ca703b508da8761a7 commit 32b28e3ae28f4d48520ada6ca703b508da8761a7 Author: Marko Zec AuthorDate: 2023-06-15 05:21:51 +0000 Commit: Marko Zec CommitDate: 2023-06-15 05:21:51 +0000 route.8: mention DXR in FIB_ALGO section While here, add a sentence describing DPDK DIR24-8 principle of operation. MFC after: 2 weeks. --- sbin/route/route.8 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sbin/route/route.8 b/sbin/route/route.8 index 72c22bee23ed..8103625decd4 100644 --- a/sbin/route/route.8 +++ b/sbin/route/route.8 @@ -28,7 +28,7 @@ .\" @(#)route.8 8.3 (Berkeley) 3/19/94 .\" $FreeBSD$ .\" -.Dd June 13, 2023 +.Dd June 16, 2023 .Dt ROUTE 8 .Os .Sh NAME @@ -442,7 +442,9 @@ Lockless immutable radix, re-created on every rtable change, tailored for a small FIB with <1000 routes. .It dpdk_lpm DPDK DIR24-8-based lookups, lockless datastructure, optimized -for a large FIB. +for large FIBs. +DIR24-8 relies on a large flat lookup table (64 MB with IPv4) which is +directly indexed by the more significant portion of the lookup key. In order to use the dpdk_lpm algorithm one or both of the following kernel modules must be loaded via .Xr loader.conf 5 : @@ -452,6 +454,16 @@ DPDK implementation for IPv4. .It dpdk_lpm6.ko DPDK implementation for IPv6. .El +.It dxr +IPv4 only, lockless, compressed lookup structure +(below 2.5 Bytes per IPv4 prefix for large BGP FIBs) +which easily fits into modern CPU cache hierarchies, +lookup throughput scales linearly with CPU cores. +Loadable as a kernel module at runtime or via +.Xr loader.conf 5 : +.Bl -tag -width fib_dxr.ko -compact +.It fib_dxr.ko +.El .El .Pp The algorithms are selected automatically based on the size of the routing