RDMA/nes: In nes_post_recv() always set bad_wr on error
authorFrank Zago <fzago@systemfabricworks.com>
Wed, 9 Dec 2009 21:51:36 +0000 (13:51 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 9 Dec 2009 21:51:36 +0000 (13:51 -0800)
commit4293fdc115e1e4f83dcb9ec6cbd3a54c563835f0
treed5e771ca5b1760aa1e0f4ed5eb2ad070d6d346f1
parente5dec39474fac3458ad6a649eab8cabfc977ae87
RDMA/nes: In nes_post_recv() always set bad_wr on error

On error, set bad_wr in nes_post_recv().  Stop processing ib_wr queue
when an error is detected.

Signed-off-by: Frank Zago <fzago@systemfabricworks.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c