diff options
author | David S. Miller <davem@davemloft.net> | 2016-01-11 00:50:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-11 00:50:21 +0300 |
commit | d3517f19f2c41f1b4e9b6a763c0cea3f7d72b589 (patch) | |
tree | 0477eec356f1e7c9422c1fa3ea66da92bc31defb /net/switchdev/switchdev.c | |
parent | c9c99311b55d4765cae35c652cb637747cc637b7 (diff) | |
parent | 4f5590f8cd736768170818d1b7ea0075972e2701 (diff) | |
download | linux-d3517f19f2c41f1b4e9b6a763c0cea3f7d72b589.tar.xz |
Merge branch 'mlxsw-layer2-multicast'
Jiri Pirko says:
====================
mlxsw: Adding layer 2 multicast
Elad says:
This patchset add Linux hardware reflection for L2 multicast offload and add
MC support in mlxsw. For every bridge MDB entry insertion, either by IGMP
snooping or by static insertion/removal, a switchdev ops is been called.
In mlxsw, a new multicast group (MID) is been created and ports are assigned.
When all ports are removed, the multicast group is been deleted.
---
v1->v2:
- GFP_ATOMIC->GFP_KERNEL change in patch 7/8
====================
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) 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(); } |