diff options
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 2 | ||||
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 12 |
3 files changed, 3 insertions, 17 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 7b46e2d7b3c2..a89b9fbe1ef4 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
@@ -486,8 +486,6 @@ void ipoib_path_iter_read(struct ipoib_path_iter *iter, | |||
486 | 486 | ||
487 | int ipoib_mcast_attach(struct net_device *dev, u16 mlid, | 487 | int ipoib_mcast_attach(struct net_device *dev, u16 mlid, |
488 | union ib_gid *mgid, int set_qkey); | 488 | union ib_gid *mgid, int set_qkey); |
489 | int ipoib_mcast_detach(struct net_device *dev, u16 mlid, | ||
490 | union ib_gid *mgid); | ||
491 | 489 | ||
492 | int ipoib_init_qp(struct net_device *dev); | 490 | int ipoib_init_qp(struct net_device *dev); |
493 | int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca); | 491 | int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca); |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c index 55ebd950bf23..71add7a8d53c 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c | |||
@@ -627,10 +627,10 @@ static int ipoib_mcast_leave(struct net_device *dev, struct ipoib_mcast *mcast) | |||
627 | IPOIB_GID_ARG(mcast->mcmember.mgid)); | 627 | IPOIB_GID_ARG(mcast->mcmember.mgid)); |
628 | 628 | ||
629 | /* Remove ourselves from the multicast group */ | 629 | /* Remove ourselves from the multicast group */ |
630 | ret = ipoib_mcast_detach(dev, be16_to_cpu(mcast->mcmember.mlid), | 630 | ret = ib_detach_mcast(priv->qp, &mcast->mcmember.mgid, |
631 | &mcast->mcmember.mgid); | 631 | be16_to_cpu(mcast->mcmember.mlid)); |
632 | if (ret) | 632 | if (ret) |
633 | ipoib_warn(priv, "ipoib_mcast_detach failed (result = %d)\n", ret); | 633 | ipoib_warn(priv, "ib_detach_mcast failed (result = %d)\n", ret); |
634 | } | 634 | } |
635 | 635 | ||
636 | return 0; | 636 | return 0; |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c index ba7c8868e6f7..68325119f740 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c | |||
@@ -72,18 +72,6 @@ out: | |||
72 | return ret; | 72 | return ret; |
73 | } | 73 | } |
74 | 74 | ||
75 | int ipoib_mcast_detach(struct net_device *dev, u16 mlid, union ib_gid *mgid) | ||
76 | { | ||
77 | struct ipoib_dev_priv *priv = netdev_priv(dev); | ||
78 | int ret; | ||
79 | |||
80 | ret = ib_detach_mcast(priv->qp, mgid, mlid); | ||
81 | if (ret) | ||
82 | ipoib_warn(priv, "ib_detach_mcast failed (result = %d)\n", ret); | ||
83 | |||
84 | return ret; | ||
85 | } | ||
86 | |||
87 | int ipoib_init_qp(struct net_device *dev) | 75 | int ipoib_init_qp(struct net_device *dev) |
88 | { | 76 | { |
89 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 77 | struct ipoib_dev_priv *priv = netdev_priv(dev); |