mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
net: bridge: Add/del switchdev object on host join/leave
When the host joins or leaves a multicast group, use switchdev to add an object to the hardware to forward traffic for the group to the host. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2a26028d11
commit
47d5b6db2a
3 changed files with 46 additions and 0 deletions
|
@ -345,6 +345,8 @@ static size_t switchdev_obj_size(const struct switchdev_obj *obj)
|
|||
return sizeof(struct switchdev_obj_port_vlan);
|
||||
case SWITCHDEV_OBJ_ID_PORT_MDB:
|
||||
return sizeof(struct switchdev_obj_port_mdb);
|
||||
case SWITCHDEV_OBJ_ID_HOST_MDB:
|
||||
return sizeof(struct switchdev_obj_port_mdb);
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue