IB/ipath: Normalize error return codes for posting work requests
authorRalph Campbell <ralph.campbell@qlogic.com>
Wed, 14 Nov 2007 21:34:14 +0000 (13:34 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 20 Nov 2007 19:05:42 +0000 (11:05 -0800)
commit4187b915a0f7eaa69707715e80d9fc253ff6167a
tree8ad1bada5abd9ef982a05a08b54a3dfdf0086187
parent14de986a0ba560b54340fd277a3579e95a2d3838
IB/ipath: Normalize error return codes for posting work requests

The error codes for ib_post_send(), ib_post_recv(), and ib_post_srq_recv()
were inconsistent. Use EINVAL for too many SGEs and ENOMEM for too many
WRs.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_srq.c
drivers/infiniband/hw/ipath/ipath_verbs.c