From patchwork Fri Apr 18 02:16:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056561 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47BC721930B for ; Fri, 18 Apr 2025 02:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942637; cv=none; b=N2EsKaneUZizYKAjYWbl0W0fLgt+fOVjmusnpW7gO2B/yv+woCDxWj3DHOHbrTZQyt2dVZtjDFMkSX+3rrVezngtQVuFd/Zs96tQMFWBJYjzisJrqfcjEN0JttOG82wJOmBRoKtbWOvyrX7EHr9sHOa409POD7fGjAyxczY1X7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942637; c=relaxed/simple; bh=ak0H73PeUTSwAL/0ZTF8DDXVbbMPerb8nIMn2bHzGys=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QV3WJKEhquRL5CeVBSq6kd9bUyyu/cBpcYYxwS4IRgsx8/yoLoqlyC2aQHtkEPgJ8OALWxJPzHWEhd4/CtWJdMSc1V5hOx0w0NiCE/d6/SCWA3CFzpHjlvbPIbwdRfCRiQUMLYjbpkV2TstU9FbqO4HyqKBJdSHBlvEIN7NaUeU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dBkJhz8C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dBkJhz8C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A71AC4CEED; Fri, 18 Apr 2025 02:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942636; bh=ak0H73PeUTSwAL/0ZTF8DDXVbbMPerb8nIMn2bHzGys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dBkJhz8CxtJef8MpVOXlZBhMtUUsmzOoT+0JwPRlFjMWE7gkQMiCFCWXl0jJ/HRJc t/zLQoAKSdYlWrjJixkYjPzW3ZltD3XkaQcjjV7cAHMGtGkTA7RSOMKx78fN1T7agT 4e2cHeewqUMR0dLQVvKqDj0wgq6jKYwCa/lirfPJNSmKyZFZPzELilSZPcmTHsQGPU uIAKEa19YutsnNtSizX00WT83RfEmNEvHHiYgxpzU/HWdeBSQVQG5pN+G/BTPXUK8S 7sqmOo2dHBaUxzrssg1dQHJY6BDLbhkAlsiNazdx8ovQukkdmu9RXKeyVYaPkwTFFn 12c43+sFcaHvw== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 01/12] netlink: specs: allow header properties for attribute sets Date: Thu, 17 Apr 2025 19:16:55 -0700 Message-ID: <20250418021706.1967583-2-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org rt-link has a number of disjoint headers, plus it uses attributes of other families (e.g. DPLL). Allow declaring a attribute set as "foreign" by specifying which header its definition is coming from. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/genetlink-c.yaml | 3 +++ Documentation/netlink/genetlink-legacy.yaml | 3 +++ Documentation/netlink/netlink-raw.yaml | 3 +++ tools/net/ynl/pyynl/ynl_gen_c.py | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/netlink/genetlink-c.yaml b/Documentation/netlink/genetlink-c.yaml index 96fa1f1522ed..5a234e9b5fa2 100644 --- a/Documentation/netlink/genetlink-c.yaml +++ b/Documentation/netlink/genetlink-c.yaml @@ -148,6 +148,9 @@ additionalProperties: False attr-max-name: description: The explicit name for last member of attribute enum. type: string + header: + description: For C-compatible languages, header which already defines this attribute set. + type: string # End genetlink-c attributes: description: List of attributes in the space. diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml index a8c5b521937d..4cbfe666e6f5 100644 --- a/Documentation/netlink/genetlink-legacy.yaml +++ b/Documentation/netlink/genetlink-legacy.yaml @@ -193,6 +193,9 @@ additionalProperties: False attr-max-name: description: The explicit name for last member of attribute enum. type: string + header: + description: For C-compatible languages, header which already defines this attribute set. + type: string # End genetlink-c attributes: description: List of attributes in the space. diff --git a/Documentation/netlink/netlink-raw.yaml b/Documentation/netlink/netlink-raw.yaml index 1b0772c8e333..e34bf23897fa 100644 --- a/Documentation/netlink/netlink-raw.yaml +++ b/Documentation/netlink/netlink-raw.yaml @@ -207,6 +207,9 @@ additionalProperties: False attr-max-name: description: The explicit name for last member of attribute enum. type: string + header: + description: For C-compatible languages, header which already defines this attribute set. + type: string # End genetlink-c attributes: description: List of attributes in the space. diff --git a/tools/net/ynl/pyynl/ynl_gen_c.py b/tools/net/ynl/pyynl/ynl_gen_c.py index 0d930c17f963..9613a6135003 100755 --- a/tools/net/ynl/pyynl/ynl_gen_c.py +++ b/tools/net/ynl/pyynl/ynl_gen_c.py @@ -2909,7 +2909,7 @@ _C_KW = { cw.p(f'#include "{hdr_file}"') cw.p('#include "ynl.h"') headers = [] - for definition in parsed['definitions']: + for definition in parsed['definitions'] + parsed['attribute-sets']: if 'header' in definition: headers.append(definition['header']) if args.mode == 'user': From patchwork Fri Apr 18 02:16:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056563 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA207267AF9 for ; Fri, 18 Apr 2025 02:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942637; cv=none; b=GGtM4+yVPI2P7AYauzGQxgurxAMEGVmpj11fWTZ69env95caoGjSut03VoWecmq/Jmo5oTMcd4kqA4KHE5lir2fr0ysM/9sHllBidsyDteuCyP58VbgwkyJmzpvgLIbCJyVY1qYQ2edy1GbncoYya4/trks6YY/jItbyGRTwFkg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942637; c=relaxed/simple; bh=g5Zs3IoDN8HSPHinYH/cNE7KtKjdcKfsFLH/51XQdPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RSOztdM6ZyRC8W+86gzuO60nt5jfLNAseuagaPfJNmnb2kYOBFjXJCtvoFm5hNJZVkie6vedunyhQYI16hSfGtgQh6MXTmv8syxNNv7pk7YpPTiQQbGTFkAOuPncHva3dWztIal2NpVnhMeHikCCi2Y06sQdsRAS/u1pYkoIDkc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AtwcAHAN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AtwcAHAN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD29DC4CEEB; Fri, 18 Apr 2025 02:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942637; bh=g5Zs3IoDN8HSPHinYH/cNE7KtKjdcKfsFLH/51XQdPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AtwcAHAN9wIAbz8+A8/HmJf3qwkDpdoJ9VOaviBsG/AcRrVA33/l5ZO1v9yJS+jXd ElHEo9EUMtTd6ioLRB9ifySRLISu8c88HeW3TGBTzRTUUpb1/nq3n0CFwQz96BOM8R Mjiqe0ooZdDw41O8VFRTYIBnAVUeMVm/QCvo6sPaVwYD6n+KGuSgCF+RwtxzhJbUl8 eRhYZqwdLD/QhM/4KrPNQgYqUUqYbyhNDqEBI7RL4f9Kofr8XHFmPqBXWMMxAZEmL2 fTqby1UMEJb+f4jDvYLjTtkEYDBzXoeX8Ewf9pQ3teYpC/Mv4xVcfpzULKblDcGbqG uIFii70wygzag== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 02/12] netlink: specs: rt-link: remove the fixed members from attrs Date: Thu, 17 Apr 2025 19:16:56 -0700 Message-ID: <20250418021706.1967583-3-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The purpose of the attribute list is to list the attributes which will be included in a given message to shrink the objects for families with huge attr spaces. Fixed headers are always present in their entirety (between netlink header and the attrs) so there's no point in listing their members. Current C codegen doesn't expect them and tries to look them up in the attribute space. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 726dfa083d14..cb7bacbd3d95 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -2367,7 +2367,6 @@ protonum: 0 request: value: 16 attributes: &link-new-attrs - - ifi-index - ifname - net-ns-pid - net-ns-fd @@ -2399,7 +2398,6 @@ protonum: 0 request: value: 17 attributes: - - ifi-index - ifname - name: getlink @@ -2410,7 +2408,6 @@ protonum: 0 request: value: 18 attributes: - - ifi-index - ifname - alt-ifname - ext-mask @@ -2418,11 +2415,6 @@ protonum: 0 reply: value: 16 attributes: &link-all-attrs - - ifi-family - - ifi-type - - ifi-index - - ifi-flags - - ifi-change - address - broadcast - ifname @@ -2515,14 +2507,9 @@ protonum: 0 do: request: value: 94 - attributes: - - ifindex reply: value: 92 attributes: &link-stats-attrs - - family - - ifindex - - filter-mask - link-64 - link-xstats - link-xstats-slave From patchwork Fri Apr 18 02:16:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056565 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57965267B85 for ; Fri, 18 Apr 2025 02:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; cv=none; b=Jf8zrQGXPw0jYvJ/PaV67nnX/BgQhh83+S6r3e20rENHZQ0mVsqO5osv5Xew/ioogW9WLTdNYyO9GaTTvPav66+IXsmLjClhqfJxqZbahicclbjKoKUkGvX7YJ5hA/nHf2ntEEyDWSKg8qStDchG/Kx5poEgvoTfbA0S1Uc7nQQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; c=relaxed/simple; bh=4q7GscTnySXqttsVM0VOs66z8TkTCLkmxK90LqMsTVg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NJSw5OIXSleWPDiBxwBdlDfEbucVe+snnT4zIVKxZeaa0G//B7AiooOI46SPRs42Rv5KgsUoUfCZIqvIsxgiopCt+wdLhN8BBVOT12MEcXJHD815gnv1UniPE9EosP6VAJdnnsiKXsYp0zsnmjTCb6m/isf0U8W+2pcpsRSbiSQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JSCZS95n; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JSCZS95n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DE89C4CEEA; Fri, 18 Apr 2025 02:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942637; bh=4q7GscTnySXqttsVM0VOs66z8TkTCLkmxK90LqMsTVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JSCZS95ntlIoiWIwvF128/nnpKthCvevOcfHv5QuK50jSZI1faPW8kit2zjRioMnT 7kWEWCTdcgD2bec7JK12XArt2HRQhCvY2MCBlogFs/oiK5JGU1sMlWy/KtfdNiPrgp zCTBnJaiYKMgADiw5ypgvnk2ywFzVfzNjA/m75UiGpEbf8ccXykPueRGRa5aufM1uq TT4rLy81n5Wachtt8h1jrLvFC7uBt7ML98giKa1y+4fo2O/c+QMNH4RcLjI4GwdD01 H9AZJ5S5Vm8b4aiqbmOK5goaiYNuC143T3hqjkCRzF8VN8UxOlI9JbQxqItQ6NX5CV YVVinEL3XFIiA== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 03/12] netlink: specs: rt-link: remove if-netnsid from attr list Date: Thu, 17 Apr 2025 19:16:57 -0700 Message-ID: <20250418021706.1967583-4-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org if-netnsid an alias to target-netnsid: IFLA_TARGET_NETNSID = IFLA_IF_NETNSID, /* new alias */ We don't have a definition for this attr. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index cb7bacbd3d95..7f411e8cd755 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -2460,7 +2460,6 @@ protonum: 0 - xdp - event - new-netnsid - - if-netnsid - target-netnsid - carrier-up-count - carrier-down-count From patchwork Fri Apr 18 02:16:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056567 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C77B3267B98 for ; Fri, 18 Apr 2025 02:17:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; cv=none; b=tnuCEDuaX6naPJFiDYgamvJWEgMYhF05nzXeeAq5bnt1mdBtEuomvtPLU53Rzc3e/XsCApEDwSWjyj+M+drqoun3FknVNh+bvECsB0BBL323pI1SDTAN890JvVKOER6Zf9TpuQzheNqpE+Hz8Uerv8Y0pGRfxoSw/mW4q9RB0DI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; c=relaxed/simple; bh=PMSQ7qnFK7wnHEHneabQKw9K7YFrTzmI4TECj1xLcH0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s6YEx2rLRZP/SUrjnfyZBRWcmcQeNKF4vDQv0Az4rYMREdnUEVtfabrYWHmcv6l2NfN61+lm6OcXMW/TeRDq6tyBWnDfjydzUsPPMmOIkqy/yDZRNtN8MEZf+nyF4pcRgIvl61tKacnxW+c1jEER0vCoYBDQd6a13TSb516tk3A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xx9b5IXq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xx9b5IXq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0AD2C4CEF1; Fri, 18 Apr 2025 02:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942638; bh=PMSQ7qnFK7wnHEHneabQKw9K7YFrTzmI4TECj1xLcH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xx9b5IXqeUeOJ9sTe4AY6r9YDLU25+8oZf7WhZtngVASaqRqJiKyR2Qzl4QHETL2R 9M6RTpkZ7sZGEqx+Glk9yX/EW8B/Td3lUPtNr3An/TBgZDUkP6JreugOeHObolZcB8 cUvvW7DowP6twqLwtx82TyXsMRueU35OECX5HYP095hovOuNzYmbIQDWhljyGHKzm7 ObHukoCO+Ha2oddEs95tEVjn9bI/Cv/mcWE4q50rpXPMmM0jtz1AXIPaFGYKoGuC8d n83IU75UQwClmXds66bbH8lcAvd+bpD6wLmeVIyyx4qfNcnLGKhJi6vsKjH5m70LdR LTGPw/nr1/ABg== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 04/12] netlink: specs: rt-link: remove duplicated group in attr list Date: Thu, 17 Apr 2025 19:16:58 -0700 Message-ID: <20250418021706.1967583-5-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org group is listed twice for newlink. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 7f411e8cd755..38f439911f94 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -2382,7 +2382,6 @@ protonum: 0 - txqlen - operstate - linkmode - - group - gso-max-size - gso-max-segs - gro-max-size From patchwork Fri Apr 18 02:16:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056564 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E4A2267B74 for ; Fri, 18 Apr 2025 02:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; cv=none; b=I/xWYg4NLJYssljjoT/pBpn+nGW2WY3/V9I9zHPnX3NmRarTCI/gyhxrPH2Btjml9PbJwFp6l92LL4gXrCzOaagBBJOEJKd6YcSgCmL/Bq42cJr3AhF+g0lKMaIyJxF/1xeeZc9rvvHHrVB250fS8mZgfpLDTSy2ZXt6p6d2j7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; c=relaxed/simple; bh=RWWelw6eOwL7K/jZ3ClhbgxHtYTprdzsRBRzlWahjR8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WNKMViLgCW8hN1lLZUQldizJF/9EwVBR1K4XKy2PLv285mfMya2aWUV10P0gZrTb401uY48t1Ex3YzcoUtsGn0D9OEYEarCVUg9jmpFrvLIfU8+UNntY4O7+567/VWn5B4gLNMSkkNFB99yEXdOFLbRMhzxlKccyl/lEmMXcPAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q4EJWC1U; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q4EJWC1U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89279C4CEF4; Fri, 18 Apr 2025 02:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942638; bh=RWWelw6eOwL7K/jZ3ClhbgxHtYTprdzsRBRzlWahjR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q4EJWC1UkP3v/ZXASkRrFWDRT/j3GbiAE3SWVCsXEkRaN+NL9fRkn4UHTWbAx6ZRG Zm0pZAV6mrXP2EfH4VlKGaQlZjyAZeGscRSJTxvZRoZm4xWf2lfwuB6kKTHHjHh6Bp L1p1phTc7q7+c5hFt3Sb663XL//PqnmVuikPudRry1zv44F8J+wH9Fz2Zrs4wM4QyA /61F7OUTQIQN8HtgqaHE4DXtvlSmglkzsh1TvK7fTraS448hBeDXVaGZXLb1rHrS7L gXA9dJwYkM3q5ktB90pF5+E0pIRV/jv6XiqxuNVQmZ08mCNBwg7u0Ga1Rmco1gPs/e 9bPkfeMnOaslA== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 05/12] netlink: specs: rt-link: add C naming info Date: Thu, 17 Apr 2025 19:16:59 -0700 Message-ID: <20250418021706.1967583-6-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Add properties needed for C codegen to match names with uAPI headers. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 30 +++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 38f439911f94..a331eb5eecb2 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -2,6 +2,7 @@ name: rt-link protocol: netlink-raw +uapi-header: linux/rtnetlink.h protonum: 0 doc: @@ -11,6 +12,9 @@ protonum: 0 - name: ifinfo-flags type: flags + header: linux/if.h + enum-name: net-device-flags + name-prefix: iff- entries: - name: up @@ -53,6 +57,7 @@ protonum: 0 - name: vlan-protocols type: enum + enum-name: entries: - name: 8021q @@ -754,6 +759,7 @@ protonum: 0 - name: vlan-flags type: flags + enum-name: entries: - reorder-hdr - gvrp @@ -840,6 +846,7 @@ protonum: 0 - name: ifla-vf-link-state-enum type: enum + enum-name: entries: - auto - enable @@ -906,6 +913,7 @@ protonum: 0 - name: rtext-filter type: flags + enum-name: entries: - vf - brvlan @@ -918,6 +926,7 @@ protonum: 0 - name: netkit-policy type: enum + enum-name: entries: - name: forward @@ -928,6 +937,7 @@ protonum: 0 - name: netkit-mode type: enum + enum-name: netkit-mode entries: - name: l2 - name: l3 @@ -935,6 +945,7 @@ protonum: 0 - name: netkit-scrub type: enum + enum-name: entries: - name: none - name: default @@ -1195,6 +1206,7 @@ protonum: 0 nested-attributes: mctp-attrs - name: vfinfo-list-attrs + name-prefix: ifla-vf- attributes: - name: info @@ -1203,6 +1215,7 @@ protonum: 0 multi-attr: true - name: vfinfo-attrs + name-prefix: ifla-vf- attributes: - name: mac @@ -1257,6 +1270,7 @@ protonum: 0 type: binary - name: vf-stats-attrs + name-prefix: ifla-vf-stats- attributes: - name: rx-packets @@ -1288,6 +1302,8 @@ protonum: 0 type: u64 - name: vf-vlan-attrs + name-prefix: ifla-vf-vlan- + attr-max-name: ifla-vf-vlan-info-max attributes: - name: info @@ -1296,12 +1312,15 @@ protonum: 0 multi-attr: true - name: vf-ports-attrs + name-prefix: ifla- attributes: [] - name: port-self-attrs + name-prefix: ifla- attributes: [] - name: linkinfo-attrs + name-prefix: ifla-info- attributes: - name: kind @@ -1855,6 +1874,7 @@ protonum: 0 - name: linkinfo-vti-attrs name-prefix: ifla-vti- + header: linux/if_tunnel.h attributes: - name: link @@ -2107,7 +2127,7 @@ protonum: 0 byte-order: big-endian - name: ifla-vlan-qos - name-prefix: ifla-vlan-qos + name-prefix: ifla-vlan-qos- attributes: - name: mapping @@ -2123,6 +2143,7 @@ protonum: 0 type: u32 - name: xdp-attrs + name-prefix: ifla-xdp- attributes: - name: fd @@ -2150,6 +2171,7 @@ protonum: 0 type: s32 - name: ifla-attrs + name-prefix: ifla-inet- attributes: - name: conf @@ -2157,6 +2179,7 @@ protonum: 0 struct: ipv4-devconf - name: ifla6-attrs + name-prefix: ifla-inet6- attributes: - name: flags @@ -2222,6 +2245,7 @@ protonum: 0 type: binary - name: link-offload-xstats + name-prefix: ifla-offload-xstats- attributes: - name: cpu-hit @@ -2236,6 +2260,7 @@ protonum: 0 type: binary - name: hw-s-info-one + name-prefix: ifla-offload-xstats-hw-s-info- attributes: - name: request @@ -2245,6 +2270,8 @@ protonum: 0 type: u8 - name: link-dpll-pin-attrs + name-prefix: dpll-a- + header: linux/dpll.h attributes: - name: id @@ -2357,6 +2384,7 @@ protonum: 0 operations: enum-model: directional + name-prefix: rtm- list: - name: newlink From patchwork Fri Apr 18 02:17:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056566 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7815267B99 for ; Fri, 18 Apr 2025 02:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; cv=none; b=X/DC7Zc5Dz9sS2Wk0o/nnlZ0g0HlWiz7GKyVjry9Oe1B2Nkw0g64v2m4K+whmMv29bDlghlHvsvKh307ZYG8pRIjNyV2DwXGVaTKF4owV7Pue4GrBA4SL6s8A/zvhGx5iDbKptXKiSsEWeIfXw/+y5yt+6HJI971RLI3/ASLbvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942639; c=relaxed/simple; bh=EqkKB/v0hT8THsotiVZRpAd5PtP4deLrOAMcqXY6pmk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SnxlVE2SwyKz8JkQ+hlaIwKcVs2hPeG1Z9WjxDFBj3fRam3R+DuV+DdcTn7KjOseUsv/JeHsP2vG5uy9XxM8jeVJ8KIxSJ1EugPlWiM9rqpNMuGJkoufEjcw/xuaopZtvCy/UoYWTq72QHsm/PPagySm2Hh3Anr0HhhFE5vkhfQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q7QyE0gp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q7QyE0gp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1706BC4CEED; Fri, 18 Apr 2025 02:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942639; bh=EqkKB/v0hT8THsotiVZRpAd5PtP4deLrOAMcqXY6pmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q7QyE0gp3eGka73Z0X7iV3En7yrCmC6yCnZm5NoVxlfnilxiKWyWF5YWlZ32kLJWW Pn3yeIgbx/ZP/6sqoNomn5vtNSwENIoGD/ZizJA2XYABvEhdHLyTdE1rIAxrVgrZh8 k+Jmyhzu8jjFqFXNv1k6/odjmdF5Kr9lFvH5egtWmxXx9C5geyQpXE4lkrxJUlazII Z6D5mlc/SOks1TnmJ67Injyi1VYPcaxvZWcnLJArgrTxCLkiS4lvbYAdptdZlFn00g 4Q9LowpllT+Wt7n7FkqHED07AEbGU+Tm/XOVTimUYLghOx+ntK2xE6QgcUirXEQUaG JAR18lda7T+9A== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 06/12] netlink: specs: rt-link: adjust AF_ nest for C codegen Date: Thu, 17 Apr 2025 19:17:00 -0700 Message-ID: <20250418021706.1967583-7-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The AF nest is indexed by AF ID, so it's a bit strange, but with minor adjustments C codegen deals with it just fine. Entirely unclear why the names have been in quotes here. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index a331eb5eecb2..6ab9b876a464 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -1188,19 +1188,21 @@ protonum: 0 multi-attr: true - name: af-spec-attrs + name-prefix: af- + attr-max-name: af-max attributes: - - name: "inet" + name: inet type: nest value: 2 nested-attributes: ifla-attrs - - name: "inet6" + name: inet6 type: nest value: 10 nested-attributes: ifla6-attrs - - name: "mctp" + name: mctp type: nest value: 45 nested-attributes: mctp-attrs From patchwork Fri Apr 18 02:17:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056568 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82843267F65 for ; Fri, 18 Apr 2025 02:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942640; cv=none; b=oJN63HXLATh4edIGysASLPP+ewhRj0N5nKaiL5AALLHaJDd67vZfu2F4GKyK5kuL0t21mccNiQ9A0uvc/ntkbq44TEP4774frTU+zGgRcfJyo+nX7v/nPiK2Ol4lluMURamjGzpphsAx4M0uRJnHOuh3EVgDj5cCG1cTTPtIG7o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942640; c=relaxed/simple; bh=RDUh6uCCiTzArfUadb/u56Uacyn0KBCCBnvHHipE6hg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WJ18qaPioza0HbP2dl00114bBZJr6jiFG7+1E1I6Vt6r5bzVyHCaefOByZyYUNZdivVWGPgVi9S8r9ciSFm/qbWruUYSR3aydu15WAV/M/1bFVEJUijH0/rOqXTxsvMmwoP2BttEDFeezk4XTitI44PUQaVNmh4uHU48Zyi3JCE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XsVlLS4i; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XsVlLS4i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AC54C4CEF0; Fri, 18 Apr 2025 02:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942640; bh=RDUh6uCCiTzArfUadb/u56Uacyn0KBCCBnvHHipE6hg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XsVlLS4iRcZYyWIoeDltx2tlG0EYlDiuADEjERO2/8JydsUy0CODle7MJlmKKHMcv EiQ3UBqBKwj9YGQR2V97gTYT9aToBmFJO0//FDhaEINflHUlQelJ3AtB9qgDk+dzzU KAW9gGmRKlTASEoP4C6vQZKqjKChNpyvEr1JBwYfKLobekhRD7n6c1VLcNAZy+qgRw q2bWP/Q7eV3p1ElHYniMxiLeSrxwvPK6K8EMHPayE7EozZm3Gp3g6Mjf+GyBwyaz8A cZygb49HjrkB+PeyaosRuJgCiO44p1D4u3i0+e35vNnwpiZPPmRA/kIydnRANwUham yfAqnNJ+H78dQ== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 07/12] netlink: specs: rt-link: make bond's ipv6 address attribute fixed size Date: Thu, 17 Apr 2025 19:17:01 -0700 Message-ID: <20250418021706.1967583-8-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org ns-ip6-target is an indexed-array. Codegen for variable size binary array would be a bit tedious, tell C that we know the size of these attributes, since they are IPv6 addrs. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 6ab9b876a464..4b51c5b60d95 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -1447,6 +1447,8 @@ protonum: 0 type: indexed-array sub-type: binary display-hint: ipv6 + checks: + exact-len: 16 - name: coupled-control type: u8 From patchwork Fri Apr 18 02:17:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056569 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAE93267F6D for ; Fri, 18 Apr 2025 02:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942640; cv=none; b=JWUU1TFlLe7P1c7RQhIQui4sjofvKtDmjPcL0GLx8fCYhqyYwNEt6rfurq7wH9121R6EIhkjkQMIWkWU4N9FrpGk7DV/o6fzA9R4MEoa8lJDDUirXyTHvz/XU+JS8RMMzk6dziuE3B6DgyKEaaW+2ZQX3JRbkXTkv1Qgxv79G94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942640; c=relaxed/simple; bh=bnCY7bTmY4BGeKOaV8L5kCUiCbBV8xUgCzgaT+Mznco=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nVVd/Rc6M5NIQ0VK+tl4WBkMIo9DsuLd4kEfBcSlm5Kp+/qutql3XHzeHA80g3a+s8SfhFYAbh1ag/mErPSV04UlZk8wwKHLeSBhLuPqDmETvtB7fE0I77ZGGlVRZNQFd7MmchclGpe1TWmE1lYHAzqle3shVjQWdWpglrpCEMk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hyLH2ZQb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hyLH2ZQb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30BE2C4CEEB; Fri, 18 Apr 2025 02:17:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942640; bh=bnCY7bTmY4BGeKOaV8L5kCUiCbBV8xUgCzgaT+Mznco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hyLH2ZQbUi5wq2liDPExVfsHm12ZKIStmM/FV3xekBn7kcMoEG9sbk1WtDcyAiMqz 6BmCZDGeZLZX7o97iqli/ej6Hk20efcxAQGDvt5sC3JKaNKSYgpGK1Bcu2ALXZ79Q1 TjW7dNGSFMAnRgljQmE819xbOZM4vdqZwBB/mwgDVA0YBR+iLnIYNKqDvEN9s4C6QG vnlfsLMd0rVn9MgpahhfUdlUVi8RPyi9yaX7tn9mPIGUFXXktexGBafSVNLNbK5ot7 D1ZeuaVgzkOrumWGxW43+b3g6tbQplZKc2pR8F46VLH60Uh/FxKQuHokFSwZ2sBjIB OsLbmAiPTRQcA== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 08/12] netlink: specs: rt-link: add notification for newlink Date: Thu, 17 Apr 2025 19:17:02 -0700 Message-ID: <20250418021706.1967583-9-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Add a notification entry for netlink so that we can test ntf handling in classic netlink and C. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-link.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 4b51c5b60d95..25f0c3c6a886 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -2420,6 +2420,12 @@ protonum: 0 - gso-ipv4-max-size - gro-ipv4-max-size - af-spec + - + name: newlink-ntf + doc: Notify that a link has been created + value: 16 + notify: getlink + fixed-header: ifinfomsg - name: dellink doc: Delete an existing link. From patchwork Fri Apr 18 02:17:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056570 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C5B226869F for ; Fri, 18 Apr 2025 02:17:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942641; cv=none; b=mCJYHMTzzV9ZJZbbedsWvwt2QXRyOzUf4XmvMGSVtuahcMeT5K5RiGefRDhyubswq8u/5+cRpma/DDx8z35g7FDhqWPJldlzUEdMXCovZpEgNwqQj9NM2lkFuIrT0xU9EF3DwCT0FGqGRbA5Y/Pg7TdB7LewC8LZtTv0+GFWTDk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942641; c=relaxed/simple; bh=OnRJ7aV6HvypbSTAmOW1ZM0vH47EZU11yXNQMrjqZ+4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I5Qf9fC3XROStO9lfmLIhEw0qqH56favg77eShXSjMR2Md2v5ep4L6NMY+WAUWWz4a58NSKX54Qz4kMxlOrfjZOGU/VS1bhTgyDUf7OIilYsUKkMjNQEknwAEq8eZqGUK3tQvGEssDmra+s0nR9j70kgqTa1Eh3vVEcl0NoPkkM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DexSVItc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DexSVItc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B824FC4CEE4; Fri, 18 Apr 2025 02:17:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942641; bh=OnRJ7aV6HvypbSTAmOW1ZM0vH47EZU11yXNQMrjqZ+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DexSVItcxE9bg2ulmNWBKaTnwJPlx5PH/eE5Mcjqp7V5ArS5/nHD02fRBsnRniiMu kv2zpXdpSabKeNB38xp1oZFYK7XhhHYsfy6bMIy6MPDvoaPLlPmlAr2p40VAOFhuyt 7agfhs8YeNBiDYcSpRU21S5ot/BiNu+t7vvDKvmDmsga1RYjcPMy2TyuUbae5H9pDI yxoPmQ4CSPU+Tz9ZLDIJ+7N2u3AE3IpOcQ9NPHREc7cuAFhVRsPMvKdcaRYtwYqDJs m2QSyIJWyQS46H86Kh/4rRBYYdLPbZ30pE81yizc6QaDgDDL0S6bfYvSSpACjS/utv roOvfCR9UVxKQ== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 09/12] netlink: specs: rt-neigh: add C naming info Date: Thu, 17 Apr 2025 19:17:03 -0700 Message-ID: <20250418021706.1967583-10-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Add properties needed for C codegen to match names with uAPI headers. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-neigh.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/netlink/specs/rt-neigh.yaml b/Documentation/netlink/specs/rt-neigh.yaml index a843caa72259..9b87efaafd15 100644 --- a/Documentation/netlink/specs/rt-neigh.yaml +++ b/Documentation/netlink/specs/rt-neigh.yaml @@ -2,6 +2,7 @@ name: rt-neigh protocol: netlink-raw +uapi-header: linux/rtnetlink.h protonum: 0 doc: @@ -48,6 +49,7 @@ protonum: 0 - name: nud-state type: flags + enum-name: entries: - incomplete - reachable @@ -60,6 +62,7 @@ protonum: 0 - name: ntf-flags type: flags + enum-name: entries: - use - self @@ -72,12 +75,14 @@ protonum: 0 - name: ntf-ext-flags type: flags + enum-name: entries: - managed - locked - name: rtm-type type: enum + enum-name: entries: - unspec - unicast @@ -179,6 +184,7 @@ protonum: 0 attribute-sets: - name: neighbour-attrs + name-prefix: nda- attributes: - name: unspec @@ -241,6 +247,7 @@ protonum: 0 type: u8 - name: ndt-attrs + name-prefix: ndta- attributes: - name: name @@ -274,6 +281,7 @@ protonum: 0 type: pad - name: ndtpa-attrs + name-prefix: ndtpa- attributes: - name: ifindex @@ -335,6 +343,7 @@ protonum: 0 operations: enum-model: directional + name-prefix: rtm- list: - name: newneigh From patchwork Fri Apr 18 02:17:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056571 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AAD22686B3 for ; Fri, 18 Apr 2025 02:17:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942642; cv=none; b=HlUcK842mWmNbb/0sjmr/+JDChN4iIifGEYUCurTfecDNX5PwTdtrB+k1d5bob/nxDSwKP4GgsTRJLaVlhopEnzbiVJmQXUOn9pzCHFJATt55FiAec2vC2tUTueez9rXhJNSAy8SqTyDH736smE1xYtv0rj49t+PWLsz6KsiDZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942642; c=relaxed/simple; bh=BH1KAmuS8KE/1hlWJ9YClplCMaz8tVJ+glU00j3N+0o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KOvm4bwINP066nvejjATrjcuX+MtmJGCSVepv8dDhNVQ8aApy4ipFUIFi94qLTe4hP8g/DyCaooU7ePUAHkRvNm0cnON/28gMouC+ZitYJhYCIsiZQC9erLK0uVhryAefHXtIm4A0zeYQClizrEz14Yj4EcBf8/7vG5m2G9Yl2I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MWSG31D/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MWSG31D/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AA8AC4CEEB; Fri, 18 Apr 2025 02:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942641; bh=BH1KAmuS8KE/1hlWJ9YClplCMaz8tVJ+glU00j3N+0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MWSG31D/FS7Cf4c/IMeQoxLZabtt7yhFRjrEQLucLFLeMPFHpEsW9fLclCkJmvke1 mcVFUeQB3phtMChZi6FCkRw5aYbMR+eH8z6QVVueCTEDWivywoqcySioQ/fLwTt0xP TydUM3ahZPmv1JRkJRULtOsCctkYdoNfeGfaDdAJajjp37qGdovPRRgYikqubrD/Dv dzdJQxXZFhlO0/rnvFa8+WlCCoDYiqTDtm7ikYpXGUBsFkRgSpAz3slorH7Ve4XmXB YLvacaV4FUjDTCU/BrHUKQreibO5WSpF/nX5gJVqez93KSp47URW12svSt9HcgHFJZ Hvu8yypUfSibg== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 10/12] netlink: specs: rt-neigh: make sure getneigh is consistent Date: Thu, 17 Apr 2025 19:17:04 -0700 Message-ID: <20250418021706.1967583-11-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The consistency check complains replies to do and dump don't match because dump has no value. It doesn't have to by the schema... but fixing this in code gen would be more code than adjusting the spec. This is rare. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-neigh.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/netlink/specs/rt-neigh.yaml b/Documentation/netlink/specs/rt-neigh.yaml index 9b87efaafd15..fe34ade6b300 100644 --- a/Documentation/netlink/specs/rt-neigh.yaml +++ b/Documentation/netlink/specs/rt-neigh.yaml @@ -402,6 +402,7 @@ protonum: 0 - ifindex - master reply: + value: 28 attributes: *neighbour-all - name: newneigh-ntf From patchwork Fri Apr 18 02:17:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056572 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5840F2686BB for ; Fri, 18 Apr 2025 02:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942642; cv=none; b=k0iEtqGAqvgXVE4xZz9e9y+DQ7Lh1j/RtdVhlFFhJbjYRT9RBTG0zwkBmHv/v1ob5VJjHAkvyu2BBkMg8BBQDfZtQxp5dBJG3YJyBPytjTbEXtj2Ia+AgaupYZd9skTMmxiXyfjCIUsK/vfWXp9gLw8MzUGg4nzKyBWcdm4O1DI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942642; c=relaxed/simple; bh=N9Vkb/2/qy6YSp+CB8tTINpDM1Zx+KsmVi1N5yZysPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZQZXZAfOdm3087Xdq8cELO7d0V2tlJVvj0QEFAySUa9Vu+FDABduaJElhYtmlLxMecy2+ngbVxEVoNk3EQhcmRKefSAfmG4rYEDVHYUTa7f74ca87tQGWfMEdvjdShoKhEibKZwJukxPomktRZ5+/6CrFfLjSlYcc7OcX2ye0qQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JMnYhm9C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JMnYhm9C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D094AC4CEF2; Fri, 18 Apr 2025 02:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942642; bh=N9Vkb/2/qy6YSp+CB8tTINpDM1Zx+KsmVi1N5yZysPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JMnYhm9CovPNdrKtSTcf9mAieJYGomeicq5gO65goZEVpga0tdd5w2VgFKFy3J04h PPdxWeSw4Fz0utSPmmZT6GOqbRAVyvaEq+zNh9TU4dW4rci/UbE7wIFHIPyr/thT2J imG4SPczvRoU/cW1tlJw4qydIY1ylo0XrQK/wwfgi84h8IZxWw3/AOJGAEHoaSQo3d F1FWmaZ7HSg6sByJt3Xi9W9l9Ciz1RnTR5qb3T5m6zI7lyOaJ8Xua4HRvL0b2C3o9N ulaDfwhyLyMgQi/FmQMZ2DyAhJZwZXWei0UPy+mEyKfGrICyLt2wmbVtYjutojxB3D mBD3LkRIEoSXg== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 11/12] netlink: specs: rtnetlink: correct notify properties Date: Thu, 17 Apr 2025 19:17:05 -0700 Message-ID: <20250418021706.1967583-12-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The notify property should point at the object the notifications carry, usually the get object, not the cmd which triggers the notification: notify: description: Name of the command sharing the reply type with this notification. Not treating this as a fix, I think that only C codegen cares. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-neigh.yaml | 2 +- Documentation/netlink/specs/rt-rule.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/netlink/specs/rt-neigh.yaml b/Documentation/netlink/specs/rt-neigh.yaml index fe34ade6b300..e9cba164e3d1 100644 --- a/Documentation/netlink/specs/rt-neigh.yaml +++ b/Documentation/netlink/specs/rt-neigh.yaml @@ -381,7 +381,7 @@ protonum: 0 name: delneigh-ntf doc: Notify a neighbour deletion value: 29 - notify: delneigh + notify: getneigh fixed-header: ndmsg - name: getneigh diff --git a/Documentation/netlink/specs/rt-rule.yaml b/Documentation/netlink/specs/rt-rule.yaml index de0938d36541..f585654a4d41 100644 --- a/Documentation/netlink/specs/rt-rule.yaml +++ b/Documentation/netlink/specs/rt-rule.yaml @@ -234,7 +234,7 @@ protonum: 0 name: newrule-ntf doc: Notify a rule creation value: 32 - notify: newrule + notify: getrule - name: delrule doc: Remove an existing FIB rule @@ -247,7 +247,7 @@ protonum: 0 name: delrule-ntf doc: Notify a rule deletion value: 33 - notify: delrule + notify: getrule - name: getrule doc: Dump all FIB rules From patchwork Fri Apr 18 02:17:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 14056573 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9859268C5C for ; Fri, 18 Apr 2025 02:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942642; cv=none; b=rv5aRz0ZVYUmKX7GoUTC812qymo17ZTaBhS2ZsChIJa/YE9BWC+124zKd245Vbub3NTy1zuJsWTCDITaO1WB5E5JTmW73Ha5yoZz0SnQMQ0qk3QEFV4OAaeHO8Pvuhw2vrnmYOvZQTKnYJ6lTVJapjHrZdM5CkCt2QwZ/fhHsAg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744942642; c=relaxed/simple; bh=VMApbaSTIw4N8yMfUosHM16xMSRLhU4M0M0dXvKm8vE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EZMGM91jAaMUv5wIFtEmJ6XZOAt57tN8BzgHfBUQUspOyHOtS3RXPhu8qm1Am4AYKxJNtHb9p6H92GB8KiDc0+sREp6wQiEa5IJPGShhI8Rj4s/mWaqGhZZljM3334BvY13qT9G4ewn4nL+t/nFgRxqgPv8re1CrIEjsHSeXstU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BCo0QRuw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BCo0QRuw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62216C4CEE4; Fri, 18 Apr 2025 02:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744942642; bh=VMApbaSTIw4N8yMfUosHM16xMSRLhU4M0M0dXvKm8vE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BCo0QRuwuZ47mLvAIRdry1EFg70FClZ0bI0l3Q4753Niwg8S+JhG9bElVQWLojRMd NvkFBGJffBwYV/ajhblAa7ttz1dW46sSAMhvTR6Az6qX+rTVJXQ+QZoWg/XQ2IyFKW 1CgtX5PaLlbAB4Thq2cFoRxLpeNU1UcWVEIFoiNYeDJ1LlyvW7CQUJz5UPaR5sx15N QEm5k75Oelzau6WuXFZCtyFdnm4C+mGVZJLGweK3UGt6C/L1ux1j/uUp8XJP1CgfM/ c93mjQyNKltyQ065IGYThHh7doMPNZ05uRQhTBJKhSZnSYA/n9HGNrTRoKmWrGvPvJ V/FU5/kJBaihA== From: Jakub Kicinski To: davem@davemloft.net, donald.hunter@gmail.com Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski Subject: [PATCH net-next 12/12] netlink: specs: rt-rule: add C naming info Date: Thu, 17 Apr 2025 19:17:06 -0700 Message-ID: <20250418021706.1967583-13-kuba@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418021706.1967583-1-kuba@kernel.org> References: <20250418021706.1967583-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Add properties needed for C codegen to match names with uAPI headers. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- Documentation/netlink/specs/rt-rule.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/netlink/specs/rt-rule.yaml b/Documentation/netlink/specs/rt-rule.yaml index f585654a4d41..003707ca4a3e 100644 --- a/Documentation/netlink/specs/rt-rule.yaml +++ b/Documentation/netlink/specs/rt-rule.yaml @@ -2,6 +2,7 @@ name: rt-rule protocol: netlink-raw +uapi-header: linux/fib_rules.h protonum: 0 doc: @@ -56,6 +57,7 @@ protonum: 0 - name: fr-act type: enum + enum-name: entries: - unspec - to-tbl @@ -90,6 +92,7 @@ protonum: 0 attribute-sets: - name: fib-rule-attrs + name-prefix: fra- attributes: - name: dst @@ -198,6 +201,7 @@ protonum: 0 operations: enum-model: directional fixed-header: fib-rule-hdr + name-prefix: rtm- list: - name: newrule