diff options
author | Hariprasad S <hariprasad@chelsio.com> | 2015-09-08 09:57:00 +0530 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-10-21 17:16:10 -0400 |
commit | 3dd9a5dc24c0bfb1453965a22f5234367a8936e3 (patch) | |
tree | 9ee8482662f8b5bd94fe2be4996149f2509b1a10 /drivers/infiniband/hw/cxgb4 | |
parent | f57b780c0000a56b5e51df5f94a35828bb5e6a7a (diff) | |
download | linux-stable-3dd9a5dc24c0bfb1453965a22f5234367a8936e3.tar.gz linux-stable-3dd9a5dc24c0bfb1453965a22f5234367a8936e3.tar.bz2 linux-stable-3dd9a5dc24c0bfb1453965a22f5234367a8936e3.zip |
iw_cxgb4: reverse the ord/ird in the ESTABLISHED upcall
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>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index fa3ee5971f35..6c022117d11e 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -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); |