IB/cm: Send no match if a SIDR REQ does not match a listen
authorSean Hefty <sean.hefty@intel.com>
Mon, 2 Jul 2007 23:14:14 +0000 (16:14 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 11 Jul 2007 04:52:28 +0000 (21:52 -0700)
commit6164c8cd1333403a28202f7c7e64ff9086d8f1aa
tree13f7156734c73a7f456572b252b8a8de87a65217
parent29c2731cbfa9d5b560a73461775f2be03b46dd4c
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 <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cm.c