]> git.ipfire.org Git - thirdparty/iproute2.git/commit
dcb: add new subcommand for apptrust
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 5 Dec 2022 22:21:45 +0000 (23:21 +0100)
committerDavid Ahern <dsahern@kernel.org>
Thu, 8 Dec 2022 16:22:47 +0000 (09:22 -0700)
commit21f88a0759b6f9121f30d70b9974dd2c5b5d9c6b
treeefd2319581be552f148ce9471dde7610b8a0b092
parent3e2a96c9f417bd2c46e1f20561e69fbd7aa4e5a7
dcb: add new subcommand for apptrust

Add new apptrust subcommand for the dcbnl apptrust extension object.

The apptrust command lets you specify a consecutive ordered list of
trusted selectors, which can be used by drivers to determine which
selectors are eligible (trusted) for packet prioritization, and in which
order.

Selectors are sent in a new nested attribute:
DCB_ATTR_IEEE_APP_TRUST_TABLE.  The nest contains trusted selectors
encapsulated in either DCB_ATTR_IEEE_APP or DCB_ATTR_DCB_APP attributes,
for standard and non-standard selectors, respectively.

Example:

Trust selectors dscp and pcp, in that order
$ dcb apptrust set dev eth0 order dscp pcp

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
dcb/Makefile
dcb/dcb.c
dcb/dcb.h
dcb/dcb_apptrust.c [new file with mode: 0644]
man/man8/dcb-apptrust.8 [new file with mode: 0644]