]> 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)
commit57e7626b88df9e00414e0e56e6b9ebb8f9b1c87d
tree5c4e139dc4440c7fe9c94db44c8cb36459f166fe
parent0650a7ac92b92cc1115bdc9e8527961928dd31f8
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