net: dsa: tag_ksz: Extend ksz9477_xmit() for HSR frame duplication
authorLukasz Majewski <lukma@denx.de>
Fri, 22 Sep 2023 13:31:06 +0000 (15:31 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Oct 2023 11:51:02 +0000 (13:51 +0200)
commit5e5db71a92c537ff37149b58bba6a8b2588a46f0
tree34e82be3a7470fc378a512187ea8910be822975f
parent6715042cd112e1db971583e2eed89b90d6f9b139
net: dsa: tag_ksz: Extend ksz9477_xmit() for HSR frame duplication

The KSZ9477 has support for HSR (High-Availability Seamless Redundancy).
One of its offloading (i.e. performed in the switch IC hardware) features
is to duplicate received frame to both HSR aware switch ports.

To achieve this goal - the tail TAG needs to be modified. To be more
specific, both ports must be marked as destination (egress) ones.

The NETIF_F_HW_HSR_DUP flag indicates that the device supports HSR and
assures (in HSR core code) that frame is sent only once from HOST to
switch with tail tag indicating both ports.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/dsa/tag_ksz.c