From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-243.mta0.migadu.com [91.218.175.243]) (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 D8F4D439F74 for ; Thu, 17 Sep 2026 06:36:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.243 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789626998; cv=none; b=jQPNsQG9U3SuGzYkdlwSlbR3nIty8z1ktPIOK+Yug2VdIo7uFibd6o3p5pBrADrB6zF8oQRp+Afteuo5ZI7PJ/fhTvoeekieKnbqTDnz5KvYGABstq9+m205BIt7CkVdQCQGwjHMU4MEB+yNxha2/UA48KeL/kWlytM6UtbSI3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789626998; c=relaxed/simple; bh=aikSuubhuRBRklJlpWq3zTZA6ZWmLVtU9b81OoFlDPE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r5kXY3vHb/5zlAV6yaPJGGSrBsvV5oPMkTL5RwGKyyoO7pex71/v69K3JBVjTF+beNLYr+vWl8DN2UhvFABBbud/SCNvPPjuQGUIkA/CZKm9S+tvaNu7t1jcqugKL/9IPRbCxXFIOxitiiG594FeGt5TUadQcxe0mgoTGA3X0JQ= 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=KkFZ6s+x; arc=none smtp.client-ip=91.218.175.243 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="KkFZ6s+x" X-Envelope-To: netdev@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=aikSuubhuRBRklJlpWq3zTZA6ZWmLVtU9b81OoFlDPE=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789626993; v=1; x=1790231793; b=KkFZ6s+xsJZpcGHDfhbVqjstzMaqF1Kcf9AnmCqm6ueEWktV/Dv448pjzbpAPU2S1f67vfYZ OQxxYXT8TDZHquUIzdOWE0rCNqsXuVdP1w3RY107b4c85lyRQsXTwXihR88EPu/HggLL4BadAhq YGNei0oLcl3X94yQJIUaJLMM= X-Envelope-To: netdev@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 98acb50523c55b4f; Thu, 17 Sep 2026 06:36:33 +0000 X-Mizu-Trace-ID: 98acb50523c55b4f X-Migadu-Flow: FLOW_OUT From: Hangbin Liu Date: Thu, 17 Sep 2026 14:35:37 +0800 Subject: [PATCH net-next 5/6] netlink: specs: rt-route: describe lwt BPF program options 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-5-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 Replace binary BPF attributes with a nested lwt-bpf-prog to support lwt bpf prog options. Signed-off-by: Hangbin Liu --- Documentation/netlink/specs/rt-route.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Documentation/netlink/specs/rt-route.yaml b/Documentation/netlink/specs/rt-route.yaml index 6030d7cb8d0d..5e9537f7dfad 100644 --- a/Documentation/netlink/specs/rt-route.yaml +++ b/Documentation/netlink/specs/rt-route.yaml @@ -463,13 +463,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 @@ -503,7 +506,8 @@ attribute-sets: type: u32 - name: bpf - type: binary + type: nest + nested-attributes: lwt-bpf-prog - name: vrftable type: u32 @@ -610,6 +614,16 @@ attribute-sets: - name: hwid type: u8 + - + name: lwt-bpf-prog + name-prefix: lwt-bpf-prog- + attributes: + - + name: fd + type: u32 + - + name: name + type: string operations: enum-model: directional -- 2.55.0