Article View: linux.kernel.netdev
Article #25827[PATCH net-next v3 0/5] lisp: add a LISP (RFC 9300) tunnel device
From: Vincent Jardin via B4 Relay
Date: Wed, 02 Dec 2026 14:16
Date: Wed, 02 Dec 2026 14:16
126 lines
16016 bytes
16016 bytes
LISP (Locator/ID Separation Protocol, RFC 9300) carries the packets sent
to an endpoint identifier (EID) over UDP, to a routing locator (RLOC) of
the site of that EID. An EID prefix and its RLOCs are a mapping, which
the LISP control plane (RFC 9301) provides.
This series adds the data plane of a LISP router (xTR): a tunnel device,
link kind "lisp", for IPv4 and IPv6 EIDs over IPv4 and IPv6 RLOCs.
A mapping is a route. The device takes the RLOC of a packet from its
tunnel metadata, which the lwtunnel encapsulation of the route
or of its nexthop provides. A remote site is a nexthop, shared by its
EID prefixes:
ip link add link wan name lisp101 type lisp id 101 local 192.0.2.1
ip link set lisp101 master site up
ip -6 nexthop add id 1 encap ip dst 198.51.100.1 dev lisp101
ip route add 10.2.0.0/24 vrf site nhid 1
ip -6 route add 2001:db8:2::/48 vrf site nhid 1
Design:
- The kernel has no map-cache and it does not resolve anything: no
upcall, no state that the packets of a host create. Its tables are the
routes and the nexthops, which a control plane in user space writes,
as it does for any other routing protocol. A packet without RLOC ends
up dropped.
- A remote site is a nexthop object, not a device: it has been designed
to scale.
- The common UDP tunnel code is used: its sockets, GRO cells, GSO, the
dst cache of the encapsulation, and a zero UDP checksum unless the
encapsulation asks for one.
Note: a LISP driver was posted to netdev back to 2014 and was not
merged. It had a device per remote RLOC and IPv4 RLOCs only, and a
map-cache that traffic fills was not accepted.
lwtunnels is an alternative.
This design shall allow routing daemons like FRRouting to support LISP.
Patches:
- patch 1 adds the driver, drivers/net/lisp.c, and its link attributes
- patch 2 describes them in the rt-link netlink spec
- patch 3 adds Documentation/networking/lisp.rst
- patch 4 adds a selftest, lisp.sh
- patch 5 adds a scale selftest, lisp_scale.sh
The series only adds: no existing code path is changed.
The lisp support of iproute2 is a separate series, for
iproute2-next. The tests are skipped without it:
https://lore.kernel.org/all/20261127-iproute2-lisp-v1-0-df8ea175bc06@free.fr/
---
Some of the following are based on
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261128-for-upstream-lisp-v1-v2-0-68e8649c3ed2%40free.fr
reviews.
Changes in v3:
- 1/5: a local IPv6 RLOC is refused when IPv6 is not enabled
- 2/5: checks of id and of local6, either id or collect-metadata
- 3/5: the VRF of the RLOCs is read when the device is set up
- 3/5: udp_l3mdev_accept with the RLOCs in the main table
- 3/5: the remote RLOC of the examples is not the local one, only the
IPv4 routes are compared with each other
- 3/5: rp_filter of a device without IPv4 address: 2 is the same check,
"all" is left as it is (Sashiko)
- 3/5: the checks of the sources do not see the instance ID of a device
that collects metadata (Sashiko)
- 3/5: the device that collects metadata sends with the id of the
encapsulation, the RLOC of a packet is not authenticated (Sashiko)
- 4/5: the change of a local RLOC is refused by the kernel, not by ip
- 4/5: flush the path MTU of x1 in the VRF of its RLOCs (Sashiko)
- 5/5: withdraw_test() checks IPv4 and IPv6 apart (Sashiko)
- Cc Willem de Bruijn
- Link to v2: https://lore.kernel.org/r/20261128-for-upstream-lisp-v1-v2-0-68e8649c3ed2@free.fr
Changes in v2, based on CI's checks:
- 1/5: fix to 80 columns
- 4/5, 5/5: fix shellcheck report
- 4/5, 5/5: wrap the lines to 80 columns
- Cc recent contributors of rt-link.yaml
Changes in v2, based on Sashiko's review:
- 1/5: link an instance device again only after an RCU grace period
since it left its chain (lisp_stop(), lisp_open())
- 1/5: fix build without CONFIG_IPV6
- 3/5: device with an instance ID that is down leaves its packets to
the device that collects metadata
- 3/5: rp_filter is the larger of the value of "all" and of the device,
ip6tables rpfilter or the nftables fib expression for IPv6
- 4/5: flush the path MTU of the host on each pass of mtu_test()
- 5/5: churn_test() improvements
- Link to v1: https://lore.kernel.org/r/20261126-for-upstream-lisp-v1-v1-0-7382a4bcfd9b@free.fr
---
Vincent Jardin (5):
lisp: add LISP (Locator/ID Separation Protocol)
netlink: specs: rt-link: add the lisp link type
docs: net: document the LISP devices
selftests: net: add a test of the LISP devices
selftests: net: add a scale test for LISP
Documentation/netlink/specs/rt-link.yaml | 41 ++
Documentation/networking/index.rst | 1 +
Documentation/networking/lisp.rst | 182 +++++
MAINTAINERS | 8 +
drivers/net/Kconfig | 20 +
drivers/net/Makefile | 1 +
drivers/net/lisp.c | 1047 ++++++++++++++++++++++++++
include/uapi/linux/if_link.h | 12 +
tools/testing/selftests/net/Makefile | 2 +
tools/testing/selftests/net/config | 4 +
tools/testing/selftests/net/lisp.sh | 1142 +++++++++++++++++++++++++++++
tools/testing/selftests/net/lisp_scale.sh | 550 ++++++++++++++
12 files changed, 3010 insertions(+)
---
base-commit: eb6d6c80d35449c27471b1874f13066c09a8964d
change-id: 20261126-for-upstream-lisp-v1-b47ac698d026
Best regards,
--
Vincent Jardin <vjardin@free.fr>
Technical Details
Message-ID:
<20261202-for-upstream-lisp-v1-v3-0-5106ead913fd@free.fr>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375844-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375844-linux-kernel-netdev=dewy.ru From: devnull+vjardin.free.fr@kernel.org (Vincent Jardin via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v3 0/5] lisp: add a LISP (RFC 9300) tunnel device Date: Wed, 02 Dec 2026 15:16:31 +0100 Organization: Usenet Network Message-ID: <20261202-for-upstream-lisp-v1-v3-0-5106ead913fd@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1987370"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Jp6g/WqliUiVZmyx82R2RIzIw/w= sha256:fnRhbzqABmudZd5Es5SnLV2UUoKrc8lj6sP4fBewyfo= sha1:50nETPIWdzXiGVrX5VOLpqUe9BI= sha256:s1xrZ69tbACNY+YybyT1ypWAywBRuQxEvMFVTtlFEcY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id C28D6117660; Wed, 2 Dec 2026 17:17:08 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.5 X-Spam-Status: No, score=-3.5 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1tEW3u1k1XnA; Wed, 2 Dec 2026 17:17:01 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375844-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 7312A117663; Wed, 2 Dec 2026 17:16:52 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id B5ADC2BB76; Wed, 2 Dec 2026 14:16:50 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796221010; b=dDBZAY/eAapjFDyr3bm/WUUIaZpJy/ou8qmkTxaPY1eeNEhM+2C78Vr3G7uwJ3j/S3G2 gPpLlKE73OOVGbek3u+AIzZ2xqAMBMUJiTS10H/0F9q2JsYJ3Afk1KuVav3bbnPb2NnJf K8T75RZuT2yX7B85xfDgyMP8gUtwSffEU6oxC/q0wDkKOc8vXW6TEPC1ZgLrJQFSlVucL nfeW5w10KEUgGvX0zsAPYh/TIR/CM0rGycMvnbDG4lY7oZNmZ6ZYXSEhH9pZvx6mNzYpN /isq6x83ZHZefwjE3xO6o5C2bgCJOz/gophhqrBVr8SwuKICkeUGSt2GhPrFirj68ng== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221010; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=wK7oBtRuMdmoI8V/1OioGRTnJrpTZ+BXR8YY75rqcF0=; b=n6qzaZqOO5A1HeehihiAnxA65k19870gCGgDvjI0OMCutf7REbURzMs57E9EVs6op8KC uGYiuSehcQcm+LeJOw+QviiTIPnp/YsB04X38XlC6YhVxOdYttkCf1Ven3vqgk1CYg/4A RMNzmeWpU72iOkES9JHG8KuDnFsJOXXMgVktB6LtGSLfvgg9c9PMmV8/ggo2RSgtCPIvE m4ub4yIwpEBiHAGn7k9hX9lIo0npMhuQopFX1P+fQ4Ht9uXIQg6FdmZt6jjt9d0XIQh/F DoJjc69Vr5sDtW7YjjOK0nUPHuxay43gytJ+wDWyiumYkSClz1tZMMPakCU0mJNtXiw== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dwOJHCEY; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E7C5606A68C; Wed, 2 Dec 2026 14:16:50 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dwOJHCEY X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796221009; b=g1GiDUW1oy/KwhQw5V3aChzneDBrq8wc/GWSq8ACdGMH6tDHB5bWuhzC3xwsNNJC8adU zlF1DXG8JNJ3rBwdHztBvXnyogFeJaiaTe5i1ImJ7qXeShiHo9/NmV8cG7CGKjQkcG7oJ o5bdDSDsWrPPntdi2+vcuM3gVZw+K7Yp8vGiELV+MtulpOnbwSLMTn7nG8t/Z7Oap/EjS Py0nFPFpV+Ex/OhETX328TJ5xU5lZXcfgfQ8UBqh4CulB/+nmvoYYU1nLrjTAfjIn5SHH 6X/swN807iXNfN+1OKqhFD1RkfR8kBCBnHY35xR6Hg5iiLHdHR5s2nbAgaHodCZV7iA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221009; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=wK7oBtRuMdmoI8V/1OioGRTnJrpTZ+BXR8YY75rqcF0=; b=4Jz+mCFHZdMd2EWTAd9aQ1zZSBIio70oa3fnkuW2B8ZYwypqOZyuHPIXRERNpRu1hd0R GjgBPigkOne0kGvvcGHAHl4B5WZR5sO8D54DcLZorzfLNPLc4scr5WBoPCAP0psN1I3iQ BGtqXsp25PeDGkMXmPYoOmT99L1yz4v/HL5fIEs/mCfEnnYl/uqsjWooCY5KPRjxmpgiC INN3K9FS81o2IG96kgunR/1li4el7Fk6/52/tMGWv1MDGePQw/t2iUr9bja58Fn+31h51 9sRbOigiIv9krzARkIZ2iePBI8cErs2Nxu86h/G6tMyrwL/Kvs+oXjC4dK0JiRm4gNQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dwOJHCEY; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DA0E606A330; Wed, 2 Dec 2026 14:16:49 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796221009; b=quvVS/aKbfh4IeV7+cA4wHWcpHGPNbh02rFS8sMDblMQNBDfwUV7g9ZmRhwN4zX2Qv4L zXuGO60vUHShfAW85c/RMKCqdlZcO0wn1o+PKeQvA6+VPdZSiPausTt0OjrDGsvOAJ+GF DE2vfrIFUW/7roCLuiL9gIeQSwMrqtPdyIROoP0FnuCtnzSgQOVc3z6EBFhQj7795Dg47 /sRQOtgmF81jBrEDzBTR3M+/No2glxaSKfaK/Ph3z84d6wv6Csb7S+YVUNpFR23hO1+CY FnJawDGR1GuqfrkLRw/RqvHuOKKkOobNuaRmWdgNVNY53OJCV9VrsnIFThOio35GNjw== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796221009; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=wK7oBtRuMdmoI8V/1OioGRTnJrpTZ+BXR8YY75rqcF0=; b=vaG7KJEIfLdLo0s/wOtx28s8vBkUnTnQm4KhXhqrIl3zVc2aDlDW41AEgJW2wp74YgdP UVp4GZtBusL3KRzWAP0BOnBfRn3mQ01/WcamWEQy1okTh/1IRVfAX2gxk50s7jsCuPQCV I7YizuDY3jhQX0oS0UnGoqOfYTCZcQEIYCaoyeHwDnJwsFnIQ/Dp7jfBHwggMoVu4e/go P26NcqGYignESk0Tbj6+G9IiNJb3056cYzynZDqv+q1ZaqjeRu1XwBT2xyL4zmjhAhuxD 0QeyqZcF1BjnyjTaJNmS8ZZKELYl9jODFw+AXFLpTMjircfkGbM5NQBuZ89VXsMK8xg== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 76E831F00896; Wed, 2 Dec 2026 14:16:38 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796221008; bh=wK7oBtRuMdmoI8V/1OioGRTnJrpTZ+BXR8YY75rqcF0=; h=From:Subject:Date:To:Cc:Reply-To; b=dwOJHCEYHdqGSBvYOrRKAp8uj9n44qTLOPyri8jrpStFJ/Cv0gIjRCluyDjiw8SZB J206awMOi78GPD542DY096dlcpG1d0LDGzRbMnowPcJivgkmBdJyD5+43N3kPlWaiE vho4gpM9mXbEQWpu8CWqvfQrWx8gLNiG+eHPFze03ulh9WHWNCel7i4QH8UX/M6JRu dC3iRQV6Ibstrg+IEY8MdaTOAXfVRhnGpt2WcoxtpnXD7LyuXdLWQv/LxpsV4L6elQ UHhNxgFcEMYBPRAZT6ubNXZ2K4kwQjSSo+izMeUimwxl8DdQreQ9ix/mBkL7z5WUaq KD+cNA2Rje63Q== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id C6A124F45F; Wed, 2 Dec 2026 14:16:37 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-B4-Tracking: v=1; b=H4sIAD8oEGsC/33NwQ7CIAwG4FdZerZmsIUxT76H8bBBcSTKFkAys +zdJVz0okkvf/726waBvKUAp2oDT8kGO7scmkMFahrcjdDqnIHXXDDGBZrZ43MJ0dPwwLsNCya GY9sNSvRS5y3Ip4snY9fCXsBRREdrhGtuJhvi7F/lX2Kl/0/nqbFrJB/aURndj2fjiY7GFy7xb 0L+IHgmhCQp2l41pPmH2Pf9DfJutOMDAQAA X-Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Asbjørn Sloth Tønnesen <ast@fiberby.net>, Danielle Ratson <danieller@nvidia.com>, Willem de Bruijn <willemb@google.com> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796220996; l=5547; i=vjardin@free.fr; s=20260525; h=from:subject:message-id; bh=jB5sxYkO9zBAtby+y364zAH8EarybuEO4C2xLvf6kLI=; b=OKMDYetaYbdeIuCEEZsokrIQVGNoK4U5GFMjFjSlcGmubr3rxyphHs0ck55IsV88R+0UdigGK A/OjHjP8c6TDZBgC0TJx8ETBGfNGA1XK32fGUbtYWXUy+OOtr6uYI88 X-Developer-Key: i=vjardin@free.fr; a=ed25519; pk=hppgLeFpGpKOi7LNwGEZ4jOYofJCoGd4Jf1ltAabiLw= X-Endpoint-Received: by B4 Relay for vjardin@free.fr/20260525 with auth_id=871 X-Original-From: Vincent Jardin <vjardin@free.fr> X-Reply-To: vjardin@free.fr