From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-3.mta0.migadu.com [91.218.175.3]) (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 CB58443D515 for ; Thu, 17 Sep 2026 06:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789627003; cv=none; b=YokA6hnE//NvSaEU0osyIE8+uqGI2EpwBKlm/Rqm084aGQ6BOJ/wAMcR14xBk6PoAKEgjyxXZN+Yd/vV8vWtIt09WThLBFZ3YixRwax8V0vXsZyRHFj+zP0mp0i86CS8af29axP+70Y+S0MBQVrvePljKePvXsMGf5kM9R37UH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789627003; c=relaxed/simple; bh=y8Py39i/yspq4Bso5dXje7reSwruHUJQYifLxun11GQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=S7s0CJ5bdwVorzWQwlbUpU+wIvKJjO3dWEwpzvijploKHks3sdvmvhnaEPTCsELVEb8yzUVc3F9iCpM6YRwZHR1LS6ibWj2wUiYD3L6j7HSEFBGjmGqe/T8e3Lhm6mnlYTi0MgBgBIB9jp1dhsgE4diglHEz8W20dAD7uUSh6ks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=vNXHikoU; arc=none smtp.client-ip=91.218.175.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="vNXHikoU" X-Envelope-To: netdev@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=y8Py39i/yspq4Bso5dXje7reSwruHUJQYifLxun11GQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789626999; v=1; x=1790231799; b=vNXHikoUs59cXg3H+P9igpBX77GGodxCy1+kCvjuwgUwoD8kq4UlrCq3wERqkBgFxpMEFCJv LgW2dzAeUFR1cKbpCrQjDVMosbGHcaN689u8Gu2Y5xAqgm5/exEn6HhQWNC5zAem7sWW/ifhMLE Ak1AMt3COUGwgGyV2I3MEKlk= X-Envelope-To: netdev@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 79b33898e2639a0c; Thu, 17 Sep 2026 06:36:39 +0000 X-Mizu-Trace-ID: 79b33898e2639a0c X-Migadu-Flow: FLOW_OUT From: Hangbin Liu Date: Thu, 17 Sep 2026 14:35:38 +0800 Subject: [PATCH net-next 6/6] netlink: specs: rt-route: describe seg6-local actions, counters and flavors Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260917-ynl_rt_encap-v1-6-fbbe6e680571@kylinos.cn> References: <20260917-ynl_rt_encap-v1-0-fbbe6e680571@kylinos.cn> In-Reply-To: <20260917-ynl_rt_encap-v1-0-fbbe6e680571@kylinos.cn> To: David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Donald Hunter Cc: Hangbin Liu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Hangbin Liu X-Mailer: b4 0.14.3 From: Hangbin Liu Add SEG6 local actions enum. Replace binary counters/flavors in seg6-local with nested seg6-local-cnt and seg6-local-flv. Signed-off-by: Hangbin Liu --- Documentation/netlink/specs/rt-route.yaml | 59 +++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/Documentation/netlink/specs/rt-route.yaml b/Documentation/netlink/specs/rt-route.yaml index 5e9537f7dfad..3929a877aa27 100644 --- a/Documentation/netlink/specs/rt-route.yaml +++ b/Documentation/netlink/specs/rt-route.yaml @@ -116,6 +116,29 @@ definitions: - rpl - ioam6 - xfrm + - + name: seg6-local-actions + type: enum + name-prefix: seg6-local-action- + enum-name: + entries: + - unspec + - end + - end-x + - end-t + - end-dx2 + - end-dx6 + - end-dx4 + - end-dt6 + - end-dt4 + - end-b6 + - end-b6-encap + - end-bm + - end-s + - end-as + - end-am + - end-bpf + - end-dt46 sub-messages: - @@ -484,6 +507,7 @@ attribute-sets: - name: action type: u32 + enum: seg6-local-actions - name: srh type: binary @@ -513,10 +537,12 @@ attribute-sets: type: u32 - name: counters - type: binary + type: nest + nested-attributes: seg6-local-cnt - name: flavors - type: binary + type: nest + nested-attributes: seg6-local-flv - name: rpl-iptunnel name-prefix: rpl-iptunnel- @@ -624,6 +650,35 @@ attribute-sets: - name: name type: string + - + name: seg6-local-cnt + name-prefix: seg6-local-cnt- + attributes: + - + name: pad + type: pad + - + name: packets + type: u64 + - + name: bytes + type: u64 + - + name: errors + type: u64 + - + name: seg6-local-flv + name-prefix: seg6-local-flv- + attributes: + - + name: operation + type: u32 + - + name: lcblock-bits + type: u8 + - + name: lcnode-fn-bits + type: u8 operations: enum-model: directional -- 2.55.0