public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] Fold status in error code
@ 2011-07-07 17:20 Goldwyn Rodrigues
  0 siblings, 0 replies; only message in thread
From: Goldwyn Rodrigues @ 2011-07-07 17:20 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Roland Dreier

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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-07 17:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 17:20 [PATCH 00/12] Fold status in error code Goldwyn Rodrigues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox