IB/qib: MADs with misset M_Keys should return failure
authorJim Foraker <foraker1@llnl.gov>
Wed, 2 May 2012 18:57:23 +0000 (14:57 -0400)
committerRoland Dreier <roland@purestorage.com>
Mon, 14 May 2012 19:42:44 +0000 (12:42 -0700)
If a MAD is sent directly to the local HCA rather than placed on a QP
and the MAD fails M_Key checks, there is no means to generate a
timeout for the client, which may hang.  Instead we report
IB_MAD_RESULT_FAILURE, which operates the same for on-the-wire
packets, but will generate a send failure back to the client.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jim Foraker <foraker1@llnl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>

No differences found