RDMA/nes: In nes_post_send() 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)
commite5dec39474fac3458ad6a649eab8cabfc977ae87
tree6997588067380f186f51f509e5e919e047f7d263
parent9420269428b3dc80c98e52beac60a3976fbef7d2
RDMA/nes: In nes_post_send() always set bad_wr on error

On error, set bad_wr in nes_post_send().  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