IB/mlx4: Set bad_wr for invalid send opcode
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 9 Feb 2012 16:52:50 +0000 (18:52 +0200)
committerRoland Dreier <roland@purestorage.com>
Sun, 26 Feb 2012 09:37:30 +0000 (01:37 -0800)
commit4ba6b8eaa9d67d03fb653cb8a13afca3236d4d70
tree529ac43cf579467c0552fcd102bd8c5764472786
parent6b21d18ed50c7d145220b0724ea7f2613abf0f95
IB/mlx4: Set bad_wr for invalid send opcode

If the opcode of a work request exceeds the range of valid opcodes,
return the pointer to the offending work request.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/qp.c