]> git.ipfire.org Git - thirdparty/iproute2.git/commit
dcb: rewr: add new dcb-rewr subcommand
authorDaniel Machon <daniel.machon@microchip.com>
Tue, 6 Jun 2023 07:19:43 +0000 (09:19 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 9 Jun 2023 21:44:04 +0000 (15:44 -0600)
commit1b2680f4696b145879bf63a54a340bb928ef9d97
tree80b77eda0a5a77a4cb0efbdb3f4ee51e62c8d3c6
parent1be8ab537824ef9917c5cac31b8dcea6dbb23cbb
dcb: rewr: add new dcb-rewr subcommand

Add a new subcommand 'rewr' for configuring the in-kernel DCB rewrite
table. The rewrite table of the kernel is similar to the APP table,
therefore, much of the existing bookkeeping code from dcb-app, can be
reused in the dcb-rewr implementation.

Initially, only support for configuring PCP and DSCP-based rewrite has
been added.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
dcb/Makefile
dcb/dcb.c
dcb/dcb.h
dcb/dcb_rewr.c [new file with mode: 0644]