]> git.dujemihanovic.xyz Git - linux.git/commit
net: dsa: microchip: add IPV information support
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 3 May 2024 13:13:41 +0000 (15:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2024 09:35:09 +0000 (10:35 +0100)
commit97278f8f109a31e626aa8f3bc984eb10a704ecc4
tree0f0c10186cec480bf2a436ce75747029b41f706a
parent96c6f337951a03ab40e13a44cf5ea59b14725721
net: dsa: microchip: add IPV information support

Most of Microchip KSZ switches use Internal Priority Value associated
with every frame. For example, it is possible to map any VLAN PCP or
DSCP value to IPV and at the end, map IPV to a queue.

Since amount of IPVs is not equal to amount of queues, add this
information and make use of it in some functions.

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