Skip to content

Commit 0e14c77

Browse files
yotamgidavem330
authored andcommitted
mlxsw: spectrum: Add the multicast routing hardware logic
Implement the multicast routing hardware API introduced in previous patch for the specific spectrum hardware. The spectrum hardware multicast routes are written using the RMFT2 register and point to an ACL flexible action set. The actions used for multicast routes are: - Counter action, which allows counting bytes and packets on multicast routes. - Multicast route action, which provide RPF check and do the actual packet duplication to a list of RIFs. - Trap action, in the case the route action specified by the called is trap. Signed-off-by: Yotam Gigi <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c011ec1 commit 0e14c77

File tree

4 files changed

+873
-1
lines changed

4 files changed

+873
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mlxsw_spectrum-objs := spectrum.o spectrum_buffers.o \
1818
spectrum_acl.o spectrum_flower.o \
1919
spectrum_cnt.o spectrum_fid.o \
2020
spectrum_ipip.o spectrum_acl_flex_actions.o \
21-
spectrum_mr.o
21+
spectrum_mr.o spectrum_mr_tcam.o
2222
mlxsw_spectrum-$(CONFIG_MLXSW_SPECTRUM_DCB) += spectrum_dcb.o
2323
mlxsw_spectrum-$(CONFIG_NET_DEVLINK) += spectrum_dpipe.o
2424
obj-$(CONFIG_MLXSW_MINIMAL) += mlxsw_minimal.o

drivers/net/ethernet/mellanox/mlxsw/spectrum.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ struct mlxsw_sp_port_mall_tc_entry {
139139
struct mlxsw_sp_sb;
140140
struct mlxsw_sp_bridge;
141141
struct mlxsw_sp_router;
142+
struct mlxsw_sp_mr;
142143
struct mlxsw_sp_acl;
143144
struct mlxsw_sp_counter_pool;
144145
struct mlxsw_sp_fid_core;

0 commit comments

Comments
 (0)