Re: [PATCH net-next v4 11/12] doc/netlink: Add spec for rt link messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 8/23/2023 4:42 AM, Donald Hunter wrote:
> Add schema for rt link with support for newlink, dellink, getlink,
> setlink and getstats.
> 
> A dummy link can be created like this:
> 
> sudo ./tools/net/ynl/cli.py \
>     --spec Documentation/netlink/specs/rt_link.yaml \
>     --do newlink --create \
>     --json '{"ifname": "dummy0", "linkinfo": {"kind": "dummy"}}'
> 
> For example, offload stats can be fetched like this:
> 
> ./tools/net/ynl/cli.py \
>     --spec Documentation/netlink/specs/rt_link.yaml \
>     --dump getstats --json '{ "filter-mask": 8 }'
> 
> Signed-off-by: Donald Hunter <donald.hunter@xxxxxxxxx>
> ---

Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux