🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23774

[PATCH net-next v2 0/5] lisp: add a LISP (RFC 9300) tunnel device

#23774
From: Vincent Jardin via B4 Relay
Date: Sat, 28 Nov 2026 00:41
103 lines
14738 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/

---
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  |   35 +
 Documentation/networking/index.rst        |    1 +
 Documentation/networking/lisp.rst         |  159 ++++
 MAINTAINERS                               |    8 +
 drivers/net/Kconfig                       |   20 +
 drivers/net/Makefile                      |    1 +
 drivers/net/lisp.c                        | 1040 ++++++++++++++++++++++++++
 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       | 1139 +++++++++++++++++++++++++++++
 tools/testing/selftests/net/lisp_scale.sh |  542 ++++++++++++++
 12 files changed, 2963 insertions(+)
---
base-commit: eb6d6c80d35449c27471b1874f13066c09a8964d
change-id: 20261126-for-upstream-lisp-v1-b47ac698d026

Best regards,
-- 
Vincent Jardin <vjardin@free.fr>
Technical Details
Message-ID: <20261128-for-upstream-lisp-v1-v2-0-68e8649c3ed2@free.fr>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373004-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373004-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 v2 0/5] lisp: add a LISP (RFC 9300) tunnel device
Date: Sat, 28 Nov 2026 01:41:32 +0100
Organization: Usenet Network
Message-ID: <20261128-for-upstream-lisp-v1-v2-0-68e8649c3ed2@free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="851136"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Lf0HZNmjM3LQzSZdUxEQGReR8Ok= sha256:PLI7yaHI/HxnobZTLijmraEh0ZIxN8/aQIrMvwAMljM=
	sha1:osCG780322o5eWpQY4gMUYSHkSs= sha256:XnpFo98RzpJjBVz0ILWVxijNUJjHj1huL1cckoKv1AY=
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 51AAF125F6D; Sat, 28 Nov 2026 03:42:16 +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 8iQEnnqX_rNr;
	Sat, 28 Nov 2026 03:42:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373004-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 57BAC125F69; Sat, 28 Nov 2026 03:42:01 +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 902C32CDD8; Sat, 28 Nov 2026 00:41:58 +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=1795826517;
	b=K75z41A7Y3xaIbWUj5wldTRwVFDRyvmWvvCHN5aVP4tJ5o2G4rjZ53ZfPvmkBNXi5J2N
	 A9GxYRb4uj1EQMAyQJJkBpM90Jv9FAxUQ6SJV5WiADF/jAg6Nhyshhqe+Z1uhtLklMC8W
	 tU33G34M/ZR9C6Vy6s7atnyNDhxxit2KoE/jMwXhxncj2yrjVG7Zv6vQJviqp7E707Fqb
	 d+j0p5CjspwDUsUyRMGICYRYR2CyQvi7SN0tpitazBbkfpdI5wLdiNXD1eJCPnVBTjiF9
	 mvrv9SAVL+1bn8LhMx9ISFY2yqm+T3VVwg49pXldOowNahHNDl6xcOJkNs9p3VpKQMw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795826517;
	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=sxK9aNeAgpmnRNl1nqPKEZb/ERh5H2YTIzE4eyPp30o=;
	b=dVZcxTXCWoaHAHBeEGLti7zuOG6SpG6BJN6LWJU0kcMHWSNVIDIQDF8JuSC00ViXzD9f
	 BNwN8ptOjsrXsLTBysH71G7sbvtujgRUuaOv/1W41IN6j1tFP4cRccYwMEw3jj2ahp0JZ
	 4UenMrx3UMNgfxwhcEoLg0gtyE7Z6fHncLfB/YfYIgizerg5PGhVb/obt3/tXNsTn669a
	 V6Vm705FlVHkbPluYPbTRFxWP0iktwih/jKZ23/mmJ4Y8K9TK9tXxckgwo73D9H4SUD5H
	 Sw8TX7ZMxKdS4oQiuFREq3CBxJvpyHb+WRMEsynRqkvgDwau8F6zqd5wlPmdTqf1P/w==
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=QHQ+i9QJ;
	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 0AE95606A680;
	Sat, 28 Nov 2026 00:41:57 +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=QHQ+i9QJ
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=1795826511;
	b=QzwfhnozHsBcquHa06DmD2n92h9Yyyg4jnLi9qKFIaEyGQX1bhJk0hN2GnCn+0EsknR9
	 TwwolsfrweEAZzvPvbbiU5SJ4YOerzbeUcnFZ6/RGXiiGAyj9G2UWQqwGdLuukWGCWsVO
	 QnpTvtdEtODW38jhkyOazaG6/VJqk+yWjFj+2cwIEv0P0PiZtiQ+zApk1DrQ/ocEQDEG8
	 K9+TaewgbYZRKrYZvY95cHIiJEXJoAkuZjHokXE7FlDrsfqxGhRfREW8kVoeGA1icAQG6
	 yATpfLHrcboz+lWAbtDEajuG7+If9txKHGAypqCOZx5DoXqjzfq3RVfPgvs5a5u+0ZQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795826511;
	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=sxK9aNeAgpmnRNl1nqPKEZb/ERh5H2YTIzE4eyPp30o=;
	b=pwPOsTg24gXdy07qc6ER1wjz28yHv/lY82A7JFPsy5JH0+3gtkFJxXn5uTNjNc0vkRL6
	 j0jxml75/RyjneWXPbWI+jqxdTV2OE5JYExNW33vFSR4Ee9EWiwSpCWDW3Wpk8NQmDqwK
	 WTlDoxx/DOlrIFw8Rz2ubHoy+Yp5ZaTojPfAaBvneyaNH5CZJyIJQ1+4am/E2HnBoHhtH
	 6AUPa2BFjTP93m8v44KCHVxGPEsYh9PBy/IvrPm9f43lZ2ZTh6dkjCFHl5gqgrQo3PJAR
	 Yxd9dl98P6q5vEbjMfTl8oaAd/He0G2PruIo2JIk69khQ6QvIMxlsIw6RGNTBbO1u9w==
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=QHQ+i9QJ;
	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 29EC7606A31E;
	Sat, 28 Nov 2026 00:41:50 +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=1795826510;
	b=SLLIFit7bMQ6hlsrFY9lMBeULFrRwxHShm1GmZ44aCrgA3YAf3N8+empJYv/6hP4evHa
	 je5YDS/F8q2dzVZ+JhyZX6enT5Uz1IWMEgV9V1Ea8S+Y0U5dbFC4sn4PsHAUU1uQrLCAU
	 0lvzwbat6GrVdQXwJkOLPA4g7eiRWgiq2Z8vjgjZgi/PsOwuiW2uTikadIkIVSq7ODWht
	 eSVitdjLNrsD79qIsd7BXQj0248KBiln5GyiQd5CjbKXtj43rWCll/YoBYPznAuqW4bXL
	 ZvSg7z5gsQAv1jqnrig/zb0lnm6TxXZV1FoSRWixJWZXYdPZMdGFM0M/tiE3UF69ImQ==
X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256;
	c=relaxed/relaxed; t=1795826510;
	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=sxK9aNeAgpmnRNl1nqPKEZb/ERh5H2YTIzE4eyPp30o=;
	b=RqdvrZmb60PIKm+FFmxx9PaAwpzcyDMNL/6fXJltwiewslkpQE1kk29r1SEaggLPk2dK
	 YNodziu7KGhXhmUWxk+P6MME5I/inEU+H5QT+vVgu3NfLYCkRwmRAMbw+iRA3voaV0BTp
	 ZORDbYbRNHRfu8LQnMkoeW2jeH9zsSu57yCtgoxz30qBhRX2n6BKa9FpoBYaLAWv429n4
	 MIP1i5ZKBBLYIq+bsKCTpKB99V4dxLUebOoG8pVThFgEiTEywCzBzeL9375PGTi1Q1NwW
	 TkEc67mwPRl4HXXKCx6iIjtDCx4NqfiRmTd/EMl3lswR+Tx8g0X5c2+Ea396UnShANQ==
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 E75301F008A0;
	Sat, 28 Nov 2026 00:41:44 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795826510;
	bh=sxK9aNeAgpmnRNl1nqPKEZb/ERh5H2YTIzE4eyPp30o=;
	h=From:Subject:Date:To:Cc:Reply-To;
	b=QHQ+i9QJVN5GhJ0TVCPzxUcYHWrltxckQFtUUBWKUmKChu2Rhwykfr7Ic1cd9HTrl
	 ZJDV9RdLr4PaSPr69S3Ps37V767WQMiL4Qx/jB4xnYB6h0GsY0HX36sQqHdlVHBOAx
	 geVqas1zgjhKLI/aJTK4eb+9lZcQCv4ZPozp7HCZ1HIAX5Va2OMPCsZbD/5pCqp58g
	 rsIAABrNEK/19ScWlvXUHn61BwflbRm/ZlOY+lbaVVqC5TmVhUV0B2wG56CSGrHhjA
	 3UhAR6OOHUkIK/qwSbAHBaraH+0vtPTt9t67Q80WD9pmEafXDJ3f/PPitMRF2h9Ssl
	 HJN/LceaQ1Ksw==
X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1])
	by lkml.kernel.org (Postfix) with ESMTP id 48A3A4DEC9;
	Sat, 28 Nov 2026 00:41:44 +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=H4sIADwjCmsC/32NwQqDMBBEf0X23C0mlag9+R/FQzSbutBG2aRiE
 f+9wQ8ozGWYmTc7RBKmCPdiB6GVI88hG30pYJxseBKyyx50qY1S2qCfBT9LTEL2jS+OC64Kh6q
 2o2kbl1uQp4uQ5+3EPiBQwkBbgj4nE8c0y/f8W9WZ/0dnlVjfGm2rYfSuHTovRFcv0B/H8QPCz
 TqwwAAAAA==
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>
X-Mailer: b4 0.13.0
X-Developer-Signature: v=1; a=ed25519-sha256; t=1795826502; l=4327;
 i=vjardin@free.fr; s=20260525; h=from:subject:message-id;
 bh=3QIbv24rPwGBZWn9xkNpTTUXhCedhThkPImwKnrDxv8=;
 b=+M8pAoNkv4l30kgyWMv8hMT7VICYTTzvk8BqRtpPTRxtXemyU8UlqJ+AJYXn7ADWiQ+N1X6vr
 MfzW61hEDXmCMRQXr1wwNaWmCOqLwLTWYWRB7pZas7DFDfkYM/PnLU5
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