]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/cxgb3: Fix error paths in post_send and post_recv
authorFrank Zago <frank@zago.net>
Wed, 16 Dec 2009 07:39:10 +0000 (23:39 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 16 Dec 2009 07:39:10 +0000 (23:39 -0800)
commit48617f862f9e58ca2a609fea6a76733aff55d672
tree2e0c75f1f58756d636cf1da020873b8f38e55240
parent3939b20f90767655cbe5878b2ab663e64d690a88
RDMA/cxgb3: Fix error paths in post_send and post_recv

Always set bad_wr when an immediate error is detected.  Return ENOMEM
for queue full instead of EINVAL to match other drivers.

Signed-off-by: Frank Zago <fzago@systemfabricworks.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_qp.c