OSDN Git Service

IB/core: Add support for RoCEv2 multicast
authorNoa Osherovich <noaos@mellanox.com>
Mon, 12 Jun 2017 08:14:04 +0000 (11:14 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:40:23 +0000 (10:40 -0400)
commit9636a56fa864464896bf7d1272c701f2b9a57737
tree692f9930c6fbe4a8aa0f746c789a8c9e9336615a
parentbe1d325a335840a86c133a56c6a911c368bac0fd
IB/core: Add support for RoCEv2 multicast

When creating address handle from multicast GID, set MAC according to
the appropriate formula instead of searching for it in the GID table:
- For IPv4 multicast GID use ip_eth_mc_map().
- For IPv6 multicast GID use ipv6_eth_mc_map().

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c