# Re: \[PATCH 2/2\] IB/mad: Return unsupported for MADs as appropriate

- From: Roland Dreier \<hidden\>
- Date: 2012-01-18 16:52:33 
- List: linux-rdma
- Page: https://ratatoskr.run/linux-rdma/2012/01/15417243
- Thread: https://ratatoskr.run/linux-rdma/2012/01/15417243/t.md

```text
On Wed, Jan 18, 2012 at 2:14 AM, Swapna Thete [ref] wrote:
> I did explore that option, however,
> Bad Version essentially gives message as
>
> “MAD returned with Bad Status: Unsupported Class or Version”
>
> which seems better and appropriate than IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB
>
> “MAD returned with Bad Status: Unsupported Method/Attribute Combination”.

Surely we should be picking the response status based on the IB spec
rather than on the error message that some arbitrary tool prints?

 - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
