From: Ido Schimmel <idosch@idosch.org>
To: Donald Hunter <donald.hunter@gmail.com>
Cc: netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
donald.hunter@redhat.com, gnault@redhat.com
Subject: Re: [PATCH net-next v1 2/2] netlink: specs: Add a spec for FIB rule management
Date: Mon, 4 Nov 2024 20:24:06 +0200 [thread overview]
Message-ID: <ZykRRvZ-lvfEz_EG@shredder> (raw)
In-Reply-To: <20241104165352.19696-3-donald.hunter@gmail.com>
On Mon, Nov 04, 2024 at 04:53:52PM +0000, Donald Hunter wrote:
> Add a YNL spec for FIB rules:
>
> ./tools/net/ynl/cli.py \
> --spec Documentation/netlink/specs/rt_rule.yaml \
> --dump getrule --json '{"family": 2}'
>
> [{'action': 'to-tbl',
> 'dst-len': 0,
> 'family': 2,
> 'flags': 0,
> 'protocol': 2,
> 'src-len': 0,
> 'suppress-prefixlen': '0xffffffff',
> 'table': 255,
> 'tos': 0},
> ... ]
>
> Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
[...]
> +attribute-sets:
> + -
> + name: fib-rule-attrs
> + attributes:
> + -
> + name: dst
> + type: u32
> + -
> + name: src
> + type: u32
> + -
> + name: iifname
> + type: string
> + -
> + name: goto
> + type: u32
> + -
> + name: unused2
> + type: pad
> + -
> + name: priority
> + type: u32
> + -
> + name: unused3
> + type: pad
> + -
> + name: unused4
> + type: pad
> + -
> + name: unused5
> + type: pad
> + -
> + name: fwmark
> + type: u32
> + display-hint: hex
> + -
> + name: flow
> + type: u32
> + -
> + name: tun-id
> + type: u64
> + -
> + name: suppress-ifgroup
> + type: u32
> + -
> + name: suppress-prefixlen
> + type: u32
> + display-hint: hex
> + -
> + name: table
> + type: u32
> + -
> + name: fwmask
> + type: u32
> + display-hint: hex
> + -
> + name: oifname
> + type: string
> + -
> + name: pad
> + type: pad
> + -
> + name: l3mdev
> + type: u8
> + -
> + name: uid-range
> + type: binary
> + struct: fib-rule-uid-range
> + -
> + name: protocol
> + type: u8
> + -
> + name: ip-proto
> + type: u8
> + -
> + name: sport-range
> + type: binary
> + struct: fib-rule-port-range
> + -
> + name: dport-range
> + type: binary
> + struct: fib-rule-port-range
Donald,
We added a new DSCP attribute in the last release. Can you please
include it in the spec? Tested the following diff [1].
Thanks!
[1]
diff --git a/Documentation/netlink/specs/rt_rule.yaml b/Documentation/netlink/specs/rt_rule.yaml
index 736bcdb25738..8d1a594e851d 100644
--- a/Documentation/netlink/specs/rt_rule.yaml
+++ b/Documentation/netlink/specs/rt_rule.yaml
@@ -169,6 +169,9 @@ attribute-sets:
name: dport-range
type: binary
struct: fib-rule-port-range
+ -
+ name: dscp
+ type: u8
operations:
enum-model: directional
@@ -199,6 +202,7 @@ operations:
- ip-proto
- sport-range
- dport-range
+ - dscp
-
name: newrule-ntf
doc: Notify a rule creation
next prev parent reply other threads:[~2024-11-04 18:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 16:53 [PATCH net-next v1 0/2] netlink: specs: Add neigh and rule YNL specs Donald Hunter
2024-11-04 16:53 ` [PATCH net-next v1 1/2] netlink: specs: Add a spec for neighbor tables in rtnetlink Donald Hunter
2024-11-04 16:53 ` [PATCH net-next v1 2/2] netlink: specs: Add a spec for FIB rule management Donald Hunter
2024-11-04 18:24 ` Ido Schimmel [this message]
2024-11-05 11:06 ` Donald Hunter
2024-11-04 18:45 ` Stanislav Fomichev
2024-11-05 11:10 ` Donald Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZykRRvZ-lvfEz_EG@shredder \
--to=idosch@idosch.org \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=donald.hunter@redhat.com \
--cc=edumazet@google.com \
--cc=gnault@redhat.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).