net: dcb: add new apptrust attribute
authorDaniel Machon <daniel.machon@microchip.com>
Tue, 1 Nov 2022 09:48:30 +0000 (10:48 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Nov 2022 14:16:50 +0000 (15:16 +0100)
commit6182d5875c330a5a611687caa05f47752455720c
tree200bfab66f2b8838990cd27bc523b979deb3753b
parentec32c0c42d0a7208571c4c77f140bffaa4e5e304
net: dcb: add new apptrust attribute

Add new apptrust extension attributes to the 8021Qaz APP managed object.

Two new attributes, DCB_ATTR_DCB_APP_TRUST_TABLE and
DCB_ATTR_DCB_APP_TRUST, has been added. Trusted selectors are passed in
the nested attribute DCB_ATTR_DCB_APP_TRUST, in order of precedence.

The new attributes are meant to allow drivers, whose hw supports the
notion of trust, to be able to set whether a particular app selector is
trusted - and in which order.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/dcbnl.h
include/uapi/linux/dcbnl.h
net/dcb/dcbnl.c