iw_cxgb4: invalidate the mr when posting a read_w_inv wr
authorSteve Wise <swise@opengridcomputing.com>
Thu, 3 Nov 2016 19:09:38 +0000 (12:09 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:10:36 +0000 (20:10 -0500)
commit5c6b2aaf9316fd0983c0c999d920306ddc65bd2d
treef1f6f98a80c3b67904bd00dc8329f46eef32abb7
parent4ff522ea47944ffd3d4d27023ace8bc6a722c834
iw_cxgb4: invalidate the mr when posting a read_w_inv wr

Also, rearrange things a bit to have a common c4iw_invalidate_mr()
function used everywhere that we need to invalidate.

Fixes: 49b53a93a64a ("iw_cxgb4: add fast-path for small REG_MR operations")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cq.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/mem.c
drivers/infiniband/hw/cxgb4/qp.c