Skip to content

Commit e8097fe

Browse files
authored
Merge pull request #1631 from TaranovK/kotaranov/new_err_codes
providers/mana: Add error code mappings for retry and rnr timeouts
2 parents a9019e1 + 003724a commit e8097fe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

providers/mana/cq.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ static enum ibv_wc_status vendor_error_to_wc_error(uint32_t vendor_error)
383383
case VENDOR_ERR_RX_NOT_EMPTY_ON_DISABLE:
384384
case VENDOR_ERR_SW_FLUSHED:
385385
return IBV_WC_WR_FLUSH_ERR;
386+
case VENDOR_ERR_TX_RETRY_LIMIT_EXCEEDED:
387+
return IBV_WC_RETRY_EXC_ERR;
388+
case VENDOR_ERR_RX_RNR_NAK:
389+
return IBV_WC_RNR_RETRY_EXC_ERR;
386390
default:
387391
return IBV_WC_GENERAL_ERR;
388392
}

providers/mana/gdma.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,12 @@ enum mana_error_code {
249249
VENDOR_ERR_RX_INVALID_REQ_NAK = 0x161,
250250
VENDOR_ERR_RX_REMOTE_ACCESS_NAK = 0x162,
251251
VENDOR_ERR_RX_REMOTE_OP_ERR_NAK = 0x163,
252+
VENDOR_ERR_RX_RNR_NAK = 0x164,
252253
VENDOR_ERR_RX_ATB_SGE_ADDR_RIGHT = 0x183,
253254
VENDOR_ERR_RX_ATB_WQE_ADDR_RIGHT = 0x185,
254255
VENDOR_ERR_RX_ATB_SGE_ADDR_RANGE = 0x1c3,
255256
VENDOR_ERR_RX_ATB_WQE_ADDR_RANGE = 0x1c5,
257+
VENDOR_ERR_TX_RETRY_LIMIT_EXCEEDED = 0x1c6,
256258
VENDOR_ERR_RX_NOT_EMPTY_ON_DISABLE = 0x1c7,
257259
VENDOR_ERR_TX_GDMA_CORRUPTED_WQE = 0x201,
258260
VENDOR_ERR_TX_ATB_WQE_ACCESS_VIOLATION = 0x202,

0 commit comments

Comments
 (0)