• Hefty, Sean's avatar
    RDMA/cma: Fix crash in cma_req_handler · 9595480c
    Hefty, Sean authored
    The RDMA CM uses the local qp_type to determine how to process an
    incoming request.  This can result in an incoming REQ being treated as
    a SIDR REQ and vice versa.  Fix this by switching off the event type
    instead, and for good measure verify that the listener supports the
    incoming connection request.
    
    This problem showed up when a user space application mismatched the QP
    types between a client and server app.
    Signed-off-by: default avatarSean Hefty <sean.hefty@intel.com>
    Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
    9595480c
cma.c 86.9 KB