diff options
| author | Oleksij Rempel <[email protected]> | 2024-05-03 13:13:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-05-08 09:35:09 +0000 |
| commit | 96c6f337951a03ab40e13a44cf5ea59b14725721 (patch) | |
| tree | 035817f74893822337f77c8524d5e8e510cf48e3 /include/net/dsa.h | |
| parent | Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/... (diff) | |
| download | kernel-96c6f337951a03ab40e13a44cf5ea59b14725721.tar.gz kernel-96c6f337951a03ab40e13a44cf5ea59b14725721.zip | |
net: dsa: add support for DCB get/set apptrust configuration
Add DCB support to get/set trust configuration for different packet
priority information sources. Some switch allow to chose different
source of packet priority classification. For example on KSZ switches it
is possible to configure VLAN PCP and/or DSCP sources.
Signed-off-by: Oleksij Rempel <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/net/dsa.h')
| -rw-r--r-- | include/net/dsa.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index eef702dbea78..40c127a30187 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -955,6 +955,10 @@ struct dsa_switch_ops { u8 prio); int (*port_del_dscp_prio)(struct dsa_switch *ds, int port, u8 dscp, u8 prio); + int (*port_set_apptrust)(struct dsa_switch *ds, int port, + const u8 *sel, int nsel); + int (*port_get_apptrust)(struct dsa_switch *ds, int port, u8 *sel, + int *nsel); /* * Suspend and resume |
