]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hsr: Add VLAN CTAG filter support
authorMurali Karicheri <m-karicheri2@ti.com>
Wed, 6 Nov 2024 09:17:08 +0000 (14:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:35:50 +0000 (16:35 +0200)
commitc707d2c5541d2bb94131968ad5dfeb06427a1dba
treefb690589f58da3a4f856cdeb9334da404306324e
parentd74b49bb6b3c39cd62632cf46d6f435fb3d0be0c
net: hsr: Add VLAN CTAG filter support

[ Upstream commit 1a8a63a5305e95519de6f941922dfcd8179f82e5 ]

This patch adds support for VLAN ctag based filtering at slave devices.
The slave ethernet device may be capable of filtering ethernet packets
based on VLAN ID. This requires that when the VLAN interface is created
over an HSR/PRP interface, it passes the VID information to the
associated slave ethernet devices so that it updates the hardware
filters to filter ethernet frames based on VID. This patch adds the
required functions to propagate the vid information to the slave
devices.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20241106091710.3308519-3-danishanwar@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 8884c6939913 ("hsr: use rtnl lock when iterating over ports")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/hsr/hsr_device.c