RDMA/nes: Adding queue drain functions
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Tue, 29 Mar 2016 17:58:37 +0000 (12:58 -0500)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:59 +0000 (19:39 -0400)
commit1997412db64bae810edd9ef77d62aefccf965e80
treee1f84d812aa4952aada02a3147cd33932da816ad
parent825107a237bd0a1589e5af3853a14ba61bef02ef
RDMA/nes: Adding queue drain functions

Adding sq and rq drain functions, which block until all
previously posted wr-s in the specified queue have completed.
A completion object is signaled to unblock the thread,
when the last cqe for the corresponding queue is processed.

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/nes/nes_verbs.c
drivers/infiniband/hw/nes/nes_verbs.h