Several ibv_wc_status values map to the same winverbs wc status values. This causes an error if the ibv_wc_status values are referenced in a switch statement. Replace the duplicated values with constants, so every wc status value is unique.
Since the wc status values are mapped from the provider library, the duplicated values are not used anyway. Signed-off-by: Sean Hefty <[email protected]> --- trunk/ulp/libibverbs/include/infiniband/verbs.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/trunk/ulp/libibverbs/include/infiniband/verbs.h b/trunk/ulp/libibverbs/include/infiniband/verbs.h index 2fd0a0c..82cebde 100644 --- a/trunk/ulp/libibverbs/include/infiniband/verbs.h +++ b/trunk/ulp/libibverbs/include/infiniband/verbs.h @@ -244,14 +244,14 @@ enum ibv_wc_status IBV_WC_BAD_RESP_ERR = WvWcBadResponse, IBV_WC_LOC_ACCESS_ERR = WvWcLocalAccessError, IBV_WC_GENERAL_ERR = WvWcError, - IBV_WC_FATAL_ERR = WvWcError, - IBV_WC_RETRY_EXC_ERR = WvWcError, - IBV_WC_REM_ABORT_ERR = WvWcError, - IBV_WC_LOC_EEC_OP_ERR = WvWcError, - IBV_WC_LOC_RDD_VIOL_ERR = WvWcError, - IBV_WC_REM_INV_RD_REQ_ERR = WvWcError, - IBV_WC_INV_EECN_ERR = WvWcError, - IBV_WC_INV_EEC_STATE_ERR = WvWcError + IBV_WC_FATAL_ERR = -1, + IBV_WC_RETRY_EXC_ERR = -2, + IBV_WC_REM_ABORT_ERR = -3, + IBV_WC_LOC_EEC_OP_ERR = -4, + IBV_WC_LOC_RDD_VIOL_ERR = -5, + IBV_WC_REM_INV_RD_REQ_ERR = -6, + IBV_WC_INV_EECN_ERR = -7, + IBV_WC_INV_EEC_STATE_ERR = -8 }; _______________________________________________ ofw mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
