In mlx4_vnic, vnic_mcast_detach_ll() calls ib_detach_mcast() with the port lid
instead of the mlid resulting in multicast detach to fail. This caused
the subsequent multicast attach to fail.
Orabug:
29029705
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Acked-by: John Haxby <john.haxby@oracle.com>
Reviewed-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: aru kolappan <aru.kolappan@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
}
if (!mcaste->sender_only)
- rc = ib_detach_mcast(mcaste->qp, &mcaste->gid, port->attr.lid);
+ rc = ib_detach_mcast(mcaste->qp, &mcaste->gid,
+ be16_to_cpu(mcaste->port_mcaste->rec.mlid));
else
rc = 0;