[PATCH net-next 0/5] lisp: add a LISP (RFC 9300) tunnel device
From: Vincent Jardin via B4 Relay
Date: Thu Nov 26 2026 - 16:37:43 EST
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 link type of iproute2 comes as a separate series, for
iproute2-next. Tests are skipped without it. Tell me if you want
iproute2 series too for a simultaneous review.
---
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 | 142 ++++
MAINTAINERS | 8 +
drivers/net/Kconfig | 20 +
drivers/net/Makefile | 1 +
drivers/net/lisp.c | 1033 ++++++++++++++++++++++++++
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 | 1120 +++++++++++++++++++++++++++++
tools/testing/selftests/net/lisp_scale.sh | 532 ++++++++++++++
12 files changed, 2910 insertions(+)
---
base-commit: eb6d6c80d35449c27471b1874f13066c09a8964d
change-id: 20261126-for-upstream-lisp-v1-b47ac698d026
Best regards,
--
Vincent Jardin <vjardin@xxxxxxx>