Article View: linux.kernel.netdev
Article #555[PATCH net-next v4 5/6] netlink: specs: rt-route: describe lwt BPF program options
From: Hangbin Liu
Date: Thu, 08 Oct 2026 08:24
Date: Thu, 08 Oct 2026 08:24
57 lines
6953 bytes
6953 bytes
From: Hangbin Liu <liuhangbin@kylinos.cn>
Replace binary BPF attributes with a nested lwt-bpf-prog to support
lwt bpf prog options.
Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
---
Documentation/netlink/specs/rt-route.yaml | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/Documentation/netlink/specs/rt-route.yaml b/Documentation/netlink/specs/rt-route.yaml
index ea6711292c9b..82e59af56ecd 100644
--- a/Documentation/netlink/specs/rt-route.yaml
+++ b/Documentation/netlink/specs/rt-route.yaml
@@ -469,13 +469,16 @@ attribute-sets:
attributes:
-
name: in
- type: binary # bpf prog
+ type: nest
+ nested-attributes: lwt-bpf-prog
-
name: out
- type: binary
+ type: nest
+ nested-attributes: lwt-bpf-prog
-
name: xmit
- type: binary
+ type: nest
+ nested-attributes: lwt-bpf-prog
-
name: xmit-headroom
type: u32
@@ -603,6 +606,18 @@ attribute-sets:
-
name: hwid
type: u8
+ -
+ name: lwt-bpf-prog
+ name-prefix: lwt-bpf-prog-
+ attributes:
+ -
+ name: fd
+ type: u32
+ -
+ name: name
+ type: string
+ checks:
+ max-len: 256
operations:
enum-model: directional
--
2.55.0
Technical Details
Message-ID:
<20261008-ynl_rt_encap-v4-5-4ed2ccf7f949@kylinos.cn>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342819-linux-kernel-netdev=dewy.ruReferences:
<20261008-ynl_rt_encap-v4-0-4ed2ccf7f949@kylinos.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342819-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v4 5/6] netlink: specs: rt-route: describe lwt BPF program options Date: Thu, 08 Oct 2026 16:24:05 +0800 Organization: Usenet Network Message-ID: <20261008-ynl_rt_encap-v4-5-4ed2ccf7f949@kylinos.cn> References: <20261008-ynl_rt_encap-v4-0-4ed2ccf7f949@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="835638"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:cwaL89iAW7Ak724gPHKqsPY5ypM= sha256:Irld54dW5tVkr0OqMrEhTufwuv4pOsARqKCfb7ZXh1Q= sha1:ROHvDvcAO/BPvoNP284fIcWRVe0= sha256:aR2sTIWvb9ETOnSeyEd4F4RAfSogWnBmGgooIoPEqcM= 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 751CD10F34E; Thu, 8 Oct 2026 11:27:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.85 X-Spam-Status: No, score=-0.85 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, 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 (1024-bit key) header.d=linux.dev 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 fdq7OAPDbyLz; Thu, 8 Oct 2026 11:27:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-342819-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 9D58E10F343; Thu, 8 Oct 2026 11:27:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 940E26074C5; Thu, 8 Oct 2026 08:25:01 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7460D470E9D; Thu, 8 Oct 2026 08:24:44 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="kZMTF5ii" X-Received: from mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 E0B3F42F700 for <netdev@vger.kernel.org>; Thu, 8 Oct 2026 08:24:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791447884; cv=none; b=e3d+7ojuCxsNKqXMXMwc/yT/a0y3GXox3MiOftC/jHccREoldej+vjYHPtoULAl84zMGm9QZ9EzT1XrkDszmAS+ewwzsh+Tj9no/bAmhqmJwi0f5Alg+i4KUcmoDr67A8q1oTU/kJMgdrc5FDWtK0Ch/PpHNElCooZBUdi4KODc= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791447884; c=relaxed/simple; bh=cw86U5iiCax77Rq316UWZ4Sbgs4IceY2PTV6GBfrhJM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EMPVfnutiGBzPV1ztx3Tz540adBPD+5+ZtZjQ25SS/umk/Ce1dD4Fu+O9WWJRlWVAV5DkEsgvd6shr5qbkS5ywrFJfDcIgdByl7FE5ggZMbKAPfJsfuOIUFG9usgcbHNeR4rnfmrAbB0Rncfck89rsxprjXuyPHLt4FOOMmnT1E= X-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=kZMTF5ii; arc=none smtp.client-ip=91.218.175.177 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=cw86U5iiCax77Rq316UWZ4Sbgs4IceY2PTV6GBfrhJM=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1791447880; v=1; x=1792052680; b=kZMTF5iiK+eixwoX5qiPPOYg4YJwfP7HgnA/qEgB0o1PNE8837PJ41Z5baNT+m8Bb0GlILXI qkRTVxDvd8z/RuKIyVaorF9RQtrMP5HqmFe1nlTuY8HtsSGTaQj3oO8TqiCGChjkaKJbtiuiq9f 31OV8FB9Yt1dt9+Ewom8E+ac= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta10.migadu.com with ESMTPS id efa00a1600d99ccd; Thu, 08 Oct 2026 08:24:40 +0000 X-Mizu-Trace-ID: efa00a1600d99ccd X-Migadu-Flow: FLOW_OUT X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261008-ynl_rt_encap-v4-0-4ed2ccf7f949@kylinos.cn> X-Cc: Hangbin Liu <hangbin.liu@linux.dev>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Hangbin Liu <liuhangbin@kylinos.cn> X-Mailer: b4 0.14.3