From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09EB837E2ED for ; Sun, 3 May 2026 15:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777823126; cv=none; b=F+woQaoe5LwzqCihKmm3QzCVH2Kf1VoPzGZ9KZ1ICjEpScsUD2P0B5KOioD1nTEU5cnADlo7PL5dPiipNEFZ1E6hh+/69Uqua+lj3h33tZydPDcbO1jrt4uSK/u2cGf3ZyrgujIC2SCZFiMiKMBv4KYCAzlTAIMws0JKCv0rNxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777823126; c=relaxed/simple; bh=GaREUCk0ijEVDsRleg5r9ZfnOH7dagivgTLMCEpwLWU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NMg1kZk3XnLfPRvpuMOpxSi0Hz/3cuQIQlSqI+acqvXnV9LcATNqLbrc72OLu20cpYOH3kvO44z34Ma+eNfI6fOjdEeYWEJcbVYI3PTiUoZMMDn6hNZyoEPs9bRMnoQ5yIYVFOXl9oSJ+K8SRwoh7UKRbH6OoZvv+4pEXnxfSas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TYYM5/pH; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TYYM5/pH" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-3654ebfd57cso14921a91.1 for ; Sun, 03 May 2026 08:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777823124; x=1778427924; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zpIu2LxYU5gNJjSpoY19leoqLRzCpRS8xYR88ipKzmI=; b=TYYM5/pHsir6m6DOF5YDE6snhiRLN0DjO7YY6Fyq7VdZQQnPhf3SoDkIm/xAajWnqj u2KFDlqlO6bAirAexyfzSE/CzgHRHg+Mc2kYJCWAfTcDpAydqfEyN52KIGJH/qTZ/EUw uZX0QGRmLKJj1/AEXaG2NiT0OO/ncMFSqHU/WU94dpsvJFuos8v0aO77qSUubglvX4J+ 2ULeSNb5/LcrEQzoXdH6IXVtgs/G3NpBKa3vQNz1ZHcs/rA+aa60smkeeDG+JMzYmgk6 RnMp4XLx0ULwqkEJ6PlEb5IoTQOb1SwveBGMMte1m/C7B0KSVLHvRyxL+aPBh8uueRm/ ctRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777823124; x=1778427924; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zpIu2LxYU5gNJjSpoY19leoqLRzCpRS8xYR88ipKzmI=; b=Evz4WT/U4097rqi4DyvhG83kytyP2SZZpofRksjdppdObfoOvP7EaXNJ7Uz4xhdzKb aBwMPdte5qzig70a+FXRhEApXunSsnnWpAA0IifMuZXFpmGbH965ncJOP95gXf8KW/oz +aKlFKMAjinILIiZlgy0do7TwP5KeFivw/qIappEbQahuos7t212oIDih49WDI7DrEVz ptvKASh79Hl34Z9io1zwhWzq2yybj6r25mzeJUX/TFHDoTsRrJy+4nKRtr59IUDfc9xq CyqaWvKRpZ/P4M/xfeAlYVsSRCyj1RsYXT91EiRrsACgvpBVEV1ua0qbfoCbJ6VcUjPl ygnA== X-Gm-Message-State: AOJu0YywVM+CLVO5I2485D9xbyMhNGnlkC4cMJEt7j6GlIk2SaBjaAnu iX9RWewk1nFd/tfEyPmE16KZ+U3yJ+URqCpqgeuCALgaz7JYyJGUZBkM X-Gm-Gg: AeBDiet2dBd9ze4WjMXmW80UQing7+YsRvou9JwgY2GQxwyMCZwvtbwBnV+QwLu0rEx lnx6m3Miyy0M6c74aceVzDUlto42T1/8GqcWQjG+ZDpGxWQeNmoKZ/9CpfrynB4GQiiSp61pPL3 LlHOY5sVj4uWmDo9QO3fAbSLXj3QIFtB/7otY/H+2TDFH8ptphE8mImWFJ0KdlELgGo9aMme8WT 9WGs/ZgCDz7u7eDE24JhTOlRuPgqCIQtSGpAQ8LYJMlYqVc4wxjl2WmJr7pr7N2nlfIx/5AnTv7 929w35Qvnn6zZfUbGYsQ9hp0/lrUfPDLkkp8+CsHwB/8WMmiarjcGzsdkh/jW3RhVyWFLsfLs7w Egs+tL/6xhX1/9OQag5rEM/TVpbmyozAp80BOQhnqFqnDe0r2Bu/lZCgw0QlnK0QdT8C3m3euYt 4hkCgDX69ZPDr5Vp/vPFNXD2WFImg= X-Received: by 2002:a17:90b:5112:b0:35f:bcc2:c351 with SMTP id 98e67ed59e1d1-3650cd70549mr6991713a91.6.1777823124267; Sun, 03 May 2026 08:45:24 -0700 (PDT) Received: from dev ([163.43.103.131]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c7ffbc6ec67sm7207421a12.17.2026.05.03.08.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 08:45:23 -0700 (PDT) From: Yuya Kusakabe To: stephen@networkplumber.org, dsahern@kernel.org Cc: netdev@vger.kernel.org, Yuya Kusakabe Subject: [PATCH iproute2-next v1 RESEND 0/6] seg6: SRv6 Mobile User Plane (RFC 9433) Date: Mon, 4 May 2026 00:45:04 +0900 Message-ID: <20260503154510.912576-1-yuya.kusakabe@gmail.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Resending v1 unchanged; the previous send had Message-IDs under the wrong domain. Please ignore: https://lore.kernel.org/netdev/20260503153006.900533-1-y-kusakabe@bbsakura.net/ This series adds the iproute2 frontend for the SRv6 Mobile User Plane (MUP) endpoint behaviors of RFC 9433. It is sent in parallel with the matching kernel net-next series; each commit here is self-contained and brings in the seg6local UAPI bits it needs from the in-progress kernel UAPI header (include/uapi/linux/seg6_local.h): Section 6.2 End.MAP Section 6.3 End.M.GTP6.D Section 6.4 End.M.GTP6.D.Di Section 6.5 End.M.GTP6.E Section 6.6 End.M.GTP4.E Section 6.7 H.M.GTP4.D The series adds these seg6local CLI keywords: src IPv6 source-address template v4_mask_len length of the IPv4 DA portion of the SID, in bits (1..32) sr_prefix_len locator length of the egress End.M.GTP*.E SID, in bits (1..88, leaving 40 bits for the Args.Mob.Session field) v6_src_prefix_len Source UPF Prefix length P in the IPv6 SA template (1..127, defaults to 64); requires P + v4_mask_len <= 128 pdu_type GTP-U PDU Session Container PDU Type (3GPP TS 38.415 Section 5.5.2): downlink|dl|uplink|ul or 0..15. When omitted, the egress emits a short GTPv1-U header (no PDU Session Container) regardless of the QFI in the SID; 5G N3 deployments must set pdu_type explicitly. A small per-action attribute validator (introduced in patch 1 and extended by each subsequent behavior) rejects obvious typos in the seg6local block at the userspace layer instead of leaving the operator with an opaque kernel EINVAL. Link: https://datatracker.ietf.org/doc/html/rfc9433 Yuya Kusakabe (6): seg6: add support for the End.MAP behavior seg6: add support for the End.M.GTP4.E behavior seg6: add support for the End.M.GTP6.E behavior seg6: add support for the End.M.GTP6.D behavior seg6: add support for the End.M.GTP6.D.Di behavior seg6: add support for the H.M.GTP4.D behavior include/uapi/linux/seg6_local.h | 17 +++ ip/ip_common.h | 2 +- ip/ipnexthop.c | 2 +- ip/iproute.c | 14 +- ip/iproute_lwtunnel.c | 263 +++++++++++++++++++++++++++++++- man/man8/ip-route.8.in | 154 +++++++++++++++++++ 6 files changed, 442 insertions(+), 10 deletions(-) base-commit: 4f5de57e2ff11a5925dacdf3deeeabee7ba9502a -- 2.50.1