aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2014-03-27 10:52:58 +0200
committerShow Liu <show.liu@linaro.org>2014-06-18 11:40:34 +0800
commit05c06ed828bdac681aa4a3c9ec529d8b034e3e29 (patch)
tree0d70a6706775bfc8152dbb0f7e306a4990a8524a /include
parent906bde38a332e36a1acb2722724373a5fa218677 (diff)
IB/core: Don't resolve passive side RoCE L2 address in CMA REQ handler
commit b2853fd6c2d0f383dbdf7427e263eb576a633867 upstream. The code that resolves the passive side source MAC within the rdma_cm connection request handler was both redundant and buggy, so remove it. It was redundant since later, when an RC QP is modified to RTR state, the resolution will take place in the ib_core module. It was buggy because this callback also deals with UD SIDR exchange, for which we incorrectly looked at the REQ member of the CM event and dereferenced a random value. Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures") Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/ib_cm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h
index f29e3a27c2c..0e3ff30647d 100644
--- a/include/rdma/ib_cm.h
+++ b/include/rdma/ib_cm.h
@@ -601,5 +601,4 @@ struct ib_cm_sidr_rep_param {
int ib_send_cm_sidr_rep(struct ib_cm_id *cm_id,
struct ib_cm_sidr_rep_param *param);
-int ib_update_cm_av(struct ib_cm_id *id, const u8 *smac, const u8 *alt_smac);
#endif /* IB_CM_H */