]> 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:29:59 +0000 (16:29 +0200)
commita2accc07bdcfb0c7ab2cacdca6a1fe8267816efa
treeb1cd796ec282a7332b1ca0956bd0da236660030f
parent6c8b7d47bc1819c82e6b2681347d4d104bd63a2a
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