mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
switchdev: Adding MDB entry offload
Define HW multicast entry: MAC and VID. Using a MAC address simplifies support for both IPV4 and IPv6. Signed-off-by: Elad Raz <eladr@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c9c99311b5
commit
4d41e12593
@@ -345,6 +345,8 @@ static size_t switchdev_obj_size(const struct switchdev_obj *obj)
|
||||
return sizeof(struct switchdev_obj_ipv4_fib);
|
||||
case SWITCHDEV_OBJ_ID_PORT_FDB:
|
||||
return sizeof(struct switchdev_obj_port_fdb);
|
||||
case SWITCHDEV_OBJ_ID_PORT_MDB:
|
||||
return sizeof(struct switchdev_obj_port_mdb);
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
Reference in New Issue
Block a user