IB/mad: Set 'D' bit in response for unhandled MADs
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 24 Apr 2012 23:06:50 +0000 (16:06 -0700)
committerRoland Dreier <roland@purestorage.com>
Tue, 24 Apr 2012 23:06:50 +0000 (16:06 -0700)
commit840777de530ae96ee9a3022f7ec1d6c65abb26ac
tree4276b8b4082dd44f323c3c9b65e09a87e7570b4f
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e
IB/mad: Set 'D' bit in response for unhandled MADs

Commit 0b307043049f ("IB/mad: Return error response for unsupported
MADs") does not handle directed-route MADs properly -- it fails to set
the 'D' bit in the response MAD status field.  This is a problem for
SmInfo MADs when the receiver does not have an SM running.

Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/mad.c