IB/srp: Handle DREQ events from CM
authorIshai Rabinovitz <ishai@mellanox.co.il>
Sun, 18 Jun 2006 03:37:32 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:32 +0000 (20:37 -0700)
commitb7ac4ab497e44cba75fb0e9e5afca06776518934
treed0d513d83ef71ea7530a3e57ccac41c3684a4fcb
parentac83cbaa9a41344c3adf329ede607e58d887f354
IB/srp: Handle DREQ events from CM

Handle IB_CM_DREQ_ERROR and IB_CM_DREQ_RECEIVED events from the CM,
instead of just printing "Unhandled CM event".  In the case of
DREQ_ERROR, just ignore the event -- a TIMEWAIT_EXIT will be generated
also.  For DREQ_RECEIVED, send a DREP in response to shut the
connection down cleanly.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c