]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hsr: Add support for MC filtering at the slave device
authorMurali Karicheri <m-karicheri2@ti.com>
Tue, 21 Nov 2023 05:37:53 +0000 (11:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:29:59 +0000 (16:29 +0200)
commit6c8b7d47bc1819c82e6b2681347d4d104bd63a2a
tree6ab972db884adafa2f0d10252873715857043fd7
parent33b3d3d1172605d8b2a0002787e09733d0a8517c
net: hsr: Add support for MC filtering at the slave device

[ Upstream commit 36b20fcdd9663ced36d3aef96f0eff8eb79de4b8 ]

When MC (multicast) list is updated by the networking layer due to a
user command and as well as when allmulti flag is set, it needs to be
passed to the enslaved Ethernet devices. This patch allows this
to happen by implementing ndo_change_rx_flags() and ndo_set_rx_mode()
API calls that in turns pass it to the slave devices using
existing API calls.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
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