]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ti: icssg-prueth: Add Support for Multicast filtering with VLAN in HSR mode
authorMD Danish Anwar <danishanwar@ti.com>
Fri, 10 Jan 2025 08:28:52 +0000 (13:58 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Jan 2025 11:17:27 +0000 (12:17 +0100)
commit161087db66d6bef11679640bc894d7bf62d2e431
tree9002f17f47190fa334490d52e14dfe71668d8ad2
parent9c10dd8eed74de9e8adeb820939f8745cd566d4a
net: ti: icssg-prueth: Add Support for Multicast filtering with VLAN in HSR mode

Add multicast filtering support for VLAN interfaces in HSR offload mode
for ICSSG driver.

The driver calls vlan_for_each() API on the hsr device's ndev to get the
list of available vlans for the hsr device. The driver then sync mc addr of
vlan interface with a locally mainatined list emac->vlan_mcast_list[vid]
using __hw_addr_sync_multiple() API.

The driver then calls the sync / unsync callbacks.

In the sync / unsync call back, driver checks if the vdev's real dev is
hsr device or not. If the real dev is hsr device, driver gets the per
port device using hsr_get_port_ndev() and then driver passes appropriate
vid to FDB helper functions.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/icssg/icssg_prueth.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h