iw_cxgb4: reverse the ord/ird in the ESTABLISHED upcall
authorHariprasad S <hariprasad@chelsio.com>
Tue, 8 Sep 2015 04:27:00 +0000 (09:57 +0530)
committerDoug Ledford <dledford@redhat.com>
Wed, 21 Oct 2015 21:16:10 +0000 (17:16 -0400)
The ESTABLISHED event should have the peer's ord/ird so
swap the values in the event before the upcall.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c

index fa3ee5971f35cef7175743257e67fd30a0352298..6c022117d11e5fc51bf3470dca58b6f55b6e6317 100644 (file)
@@ -1269,8 +1269,8 @@ static void established_upcall(struct c4iw_ep *ep)
        PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
        memset(&event, 0, sizeof(event));
        event.event = IW_CM_EVENT_ESTABLISHED;
-       event.ird = ep->ird;
-       event.ord = ep->ord;
+       event.ird = ep->ord;
+       event.ord = ep->ird;
        if (ep->com.cm_id) {
                PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
                ep->com.cm_id->event_handler(ep->com.cm_id, &event);