]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Configure RIF to forward IPv4 multicast packets by default
authorYotam Gigi <yotamg@mellanox.com>
Tue, 19 Sep 2017 08:00:18 +0000 (10:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 21:21:40 +0000 (14:21 -0700)
commitfa69fde52ac3ae2bce6246c110bbca922eb96e1d
tree5c4e139dc4440c7fe9c94db44c8cb36459f166fe
parentcc5508a0ed9b78678576490a777b3b75183ec241
mlxsw: reg: Configure RIF to forward IPv4 multicast packets by default

Turn on two bits on the Spectrum RIF configuration:
 - IPv4 multicast: when a multicast packet arrives on a RIF, send it to go
   through multicast routes lookup.
 - IPv4 multicast forwarding enable: when multicast packet arrives on a
   RIF, allow it to be forwarded by multicast routes. If this bit is not
   set, multicast packets will go through multicast routing lookup but will
   be dropped at the egress of the ports.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h