diff options
author | Eli Cohen <eli@mellanox.co.il> | 2008-07-15 02:48:50 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-07-15 02:48:50 -0400 |
commit | d0de13622d5ac658efe7c51521dbdbe0752aa3dd (patch) | |
tree | c61104a706ff1122b72888e0ed466d8183ee79e3 /drivers/infiniband/ulp/ipoib/ipoib.h | |
parent | 5892eff91ad60ba365ae7f75050ce464036c5396 (diff) |
IPoIB: Only set Q_Key once: after joining broadcast group
The current code will set the Q_Key for any join of a non-sendonly
multicast group. The operation involves a modify QP operation, which
is fairly heavyweight, and is only really required after the join of
the broadcast group. Fix this by adding a parameter to ipoib_mcast_attach()
to control when the Q_Key is set.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index b8753222c870..7b46e2d7b3c2 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
@@ -485,7 +485,7 @@ void ipoib_path_iter_read(struct ipoib_path_iter *iter, | |||
485 | #endif | 485 | #endif |
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); | 488 | union ib_gid *mgid, int set_qkey); |
489 | int ipoib_mcast_detach(struct net_device *dev, u16 mlid, | 489 | int ipoib_mcast_detach(struct net_device *dev, u16 mlid, |
490 | union ib_gid *mgid); | 490 | union ib_gid *mgid); |
491 | 491 | ||