Skip to content

Fold status in error code

Goldwyn Rodrigues linux-rdma 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Introduce mthca_status_to_errnodrivers/infiniband/hw/mthca/mthca_cmd.c+50 -150 replies
2/12Clear status reporting from mthca_cmddrivers/infiniband/hw/mthca/mthca_cmd.c drivers/infiniband/hw/mthca/mthca_cmd.h+146 -1580 replies
3/12Clean status reporting frmom mthca_maindrivers/infiniband/hw/mthca/mthca_main.c+61 -1270 replies
4/12Clean status from mthca_eqdrivers/infiniband/hw/mthca/mthca_eq.c+10 -330 replies
5/12Clean status reporting from mthca_cqdrivers/infiniband/hw/mthca/mthca_cq.c+2 -130 replies
6/12Clear status reporting from mthca_mrdrivers/infiniband/hw/mthca/mthca_mr.c+4 -310 replies
7/12Clear status reporting from mthca_qpdrivers/infiniband/hw/mthca/mthca_qp.c+15 -340 replies
8/12Clear status reporting from mthca_mcgdrivers/infiniband/hw/mthca/mthca_mcg.c+33 -680 replies
9/12Clear status reporting from mthca_maddrivers/infiniband/hw/mthca/mthca_mad.c+4 -110 replies
10/12Clear status reporting from mthca_providerdrivers/infiniband/hw/mthca/mthca_provider.c+11 -660 replies
11/12Clear status reporting from mthca_memfreedrivers/infiniband/hw/mthca/mthca_memfree.c+15 -300 replies
12/12Clear status from mthca_srqdrivers/infiniband/hw/mthca/mthca_srq.c+7 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] 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