net: dsa: microchip: add support DSCP priority mapping
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 3 May 2024 13:13:50 +0000 (15:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2024 09:35:11 +0000 (10:35 +0100)
commitc2e722657f18272a8b8711e94b29466f253715e6
treef3460df4cbb6c1672cfd12d91698108d6c88c548
parent5f5109af47535bc613c12a089dded425a373a12f
net: dsa: microchip: add support DSCP priority mapping

Microchip KSZ and LAN variants do not have per port DSCP priority
configuration. Instead there is a global DSCP mapping table.

This patch provides write access to this global DSCP map. In case entry
is "deleted", we map corresponding DSCP entry to a best effort prio,
which is expected to be the default priority for all untagged traffic.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_dcb.c
drivers/net/dsa/microchip/ksz_dcb.h