net: add IEEE 802.1q specific helpers
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 3 May 2024 13:13:42 +0000 (15:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2024 09:35:09 +0000 (10:35 +0100)
commit768cf8413883892c6ff0db783a0295a60886ec33
tree37131e4c8a2e1c0cf2ae271642cea03ed33bf4f2
parent97278f8f109a31e626aa8f3bc984eb10a704ecc4
net: add IEEE 802.1q specific helpers

IEEE 802.1q specification provides recommendation and examples which can
be used as good default values for different drivers.

This patch implements mapping examples documented in IEEE 802.1Q-2022 in
Annex I "I.3 Traffic type to traffic class mapping" and IETF DSCP naming
and mapping DSCP to Traffic Type inspired by RFC8325.

This helpers will be used in followup patches for dsa/microchip DCB
implementation.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dscp.h [new file with mode: 0644]
include/net/ieee8021q.h [new file with mode: 0644]
net/Kconfig
net/core/Makefile
net/core/ieee8021q_helpers.c [new file with mode: 0644]