]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Only set Q_Key once: after joining broadcast group
authorEli Cohen <eli@mellanox.co.il>
Tue, 15 Jul 2008 06:48:50 +0000 (23:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:50 +0000 (23:48 -0700)
commit9b69306d113f36acdd0fd5f5261c7868613a7852
treec61104a706ff1122b72888e0ed466d8183ee79e3
parent4801235946df732ac0230c0bdf1a794bd7806a9c
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>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
drivers/infiniband/ulp/ipoib/ipoib_verbs.c