The firmware command handling in mthca looks like
        err = mthca_FOO(..., &status);
        if (err) ...
        if (status) ...

Most of the time where status matters, a non-OK status message translates to
-EINVAL err.

This patchset folds the status in error code, so that we don't need to repeat
error handling code, and yet the type of error is communicated to the calling
functions.

This is in parallel to mlx4 code by Roland. The patches were broken per-file
basis, and all 12 patches are required before you can compile the module.


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

Reply via email to