RDMA/nes: Use flush mechanism to set status for wqe in error
authorDon Wood <donald.e.wood@intel.com>
Sun, 6 Sep 2009 03:36:38 +0000 (20:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:38 +0000 (20:36 -0700)
commit4b281faec3ad00f7fb00080078321e4d819795eb
tree0d85e499fa7767847770c4da256467f1b5f3cfdc
parent8b1c9dc4ba713985d33aba87c761bf71d5a96491
RDMA/nes: Use flush mechanism to set status for wqe in error

When an asynchronous event occurs that requires a terminate, it is
sometimes possible to identify the wqe in error.  This change uses
flush to get this information to the poll routine.  The flush
operation puts the status into the cqe.  If this information is not
available, it continues to use the more generic flush code as before.

Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_hw.h
drivers/infiniband/hw/nes/nes_verbs.h