Commit:     6164c8cd1333403a28202f7c7e64ff9086d8f1aa
Parent:     29c2731cbfa9d5b560a73461775f2be03b46dd4c
Author:     Sean Hefty <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 2 16:14:14 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 21:52:28 2007 -0700

    IB/cm: Send no match if a SIDR REQ does not match a listen
    If a SIDR REQ does not match a listen, we should reply with status
    value 1 (service ID not supported), rather than dropping through to
    the default case of status 2 (rejected by service provider).
    Doing this also fixes a bug where the cm_id_priv is removed from the
    remote_sidr_table twice.
    Signed-off-by: Sean Hefty <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/core/cm.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 9135a8c..9820c67 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -2808,9 +2808,8 @@ static int cm_sidr_req_handler(struct cm_work *work)
        if (!cur_cm_id_priv) {
-               rb_erase(&cm_id_priv->sidr_id_node, &cm.remote_sidr_table);
-               /* todo: reply with no match */
+               cm_reject_sidr_req(cm_id_priv, IB_SIDR_UNSUPPORTED);
                goto out; /* No match. */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to