diff options
author | Elad Raz <eladr@mellanox.com> | 2016-01-10 15:06:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-10 16:50:20 -0500 |
commit | 4d41e12593a9a6c4aaf113d44c8c619067b2b0aa (patch) | |
tree | a7d6f84c3a6ded70c97309452dbf992c8995deb1 /net/switchdev/switchdev.c | |
parent | c9c99311b55d4765cae35c652cb637747cc637b7 (diff) |
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index df790d3385a2..ebc661d3b6e3 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -345,6 +345,8 @@ static size_t switchdev_obj_size(const struct switchdev_obj *obj) | |||
345 | return sizeof(struct switchdev_obj_ipv4_fib); | 345 | return sizeof(struct switchdev_obj_ipv4_fib); |
346 | case SWITCHDEV_OBJ_ID_PORT_FDB: | 346 | case SWITCHDEV_OBJ_ID_PORT_FDB: |
347 | return sizeof(struct switchdev_obj_port_fdb); | 347 | return sizeof(struct switchdev_obj_port_fdb); |
348 | case SWITCHDEV_OBJ_ID_PORT_MDB: | ||
349 | return sizeof(struct switchdev_obj_port_mdb); | ||
348 | default: | 350 | default: |
349 | BUG(); | 351 | BUG(); |
350 | } | 352 | } |