IB/ipoib: Allow mcast packets from other VFs
authorEli Cohen <eli@mellanox.com>
Fri, 11 Mar 2016 20:58:43 +0000 (22:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Mar 2016 21:13:14 +0000 (17:13 -0400)
commit68996a6e760e5c74654723eeb57bf65628ae87f4
treeb3f9199d80a5e67822dc62adeab1ed37769b297b
parenteff901d30e6cebd940072637f112ce4d0090ac12
IB/ipoib: Allow mcast packets from other VFs

With SRIOV enabled, two VFs on the same HCA which have the same port LID
and may have the same QP number. To enable receiving multicasts from
such VFs, further qualify the check: ignore the receive only if, in
addition, the packet source gid equals the receiving VF's source gid.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c