Skip to contentSkip to conversation

Fold status in error code

PATCH New Goldwyn Rodrigues 1 participant 1 message Jul 7, 2011 InfiniBand

lore
Share & tools
lore
#0 lore raw

cover Fold status in error code

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.

Signature · 5 lines
Goldwyn
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html