]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mlx4_vnic: use the mlid while calling ib_detach_mcast
authoraru kolappan <aru.kolappan@oracle.com>
Fri, 21 Dec 2018 01:28:45 +0000 (17:28 -0800)
committerBrian Maly <brian.maly@oracle.com>
Wed, 2 Jan 2019 18:00:42 +0000 (13:00 -0500)
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>
drivers/net/ethernet/mellanox/mlx4_vnic/vnic_mcast.c

index c82190cd576beab53b74bb64e11143847047d3fd..8e9127eda6db1843906b2efcc937465c84fb0001 100644 (file)
@@ -294,7 +294,8 @@ static void vnic_mcast_detach_ll(struct vnic_mcast *mcaste, struct mcast_root *m
        }
 
        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;