Skip to content

Commit 97d14a8

Browse files
authored
Merge pull request #1697 from amzn/error-feature-mismatch
EFA: Add new completion status for feature mismatch
2 parents 125c731 + d1c38b0 commit 97d14a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

providers/efa/efa_io_defs.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
22
/*
3-
* Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
3+
* Copyright 2018-2026 Amazon.com, Inc. or its affiliates. All rights reserved.
44
*/
55

66
#ifndef _EFA_IO_H_
@@ -60,6 +60,8 @@ enum efa_io_comp_status {
6060
EFA_IO_COMP_STATUS_REMOTE_ERROR_UNKNOWN_PEER = 14,
6161
/* Unreachable remote - never received a response */
6262
EFA_IO_COMP_STATUS_LOCAL_ERROR_UNREACH_REMOTE = 15,
63+
/* Feature mismatch */
64+
EFA_IO_COMP_STATUS_REMOTE_ERROR_FEATURE_MISMATCH = 18,
6365
};
6466

6567
struct efa_io_tx_meta_desc {

providers/efa/verbs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
22
/*
3-
* Copyright 2019-2025 Amazon.com, Inc. or its affiliates. All rights reserved.
3+
* Copyright 2019-2026 Amazon.com, Inc. or its affiliates. All rights reserved.
44
*/
55

66
#include <assert.h>
@@ -549,6 +549,7 @@ static enum ibv_wc_status to_ibv_status(enum efa_io_comp_status status)
549549
return IBV_WC_REM_INV_RD_REQ_ERR;
550550
case EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_STATUS:
551551
return IBV_WC_BAD_RESP_ERR;
552+
case EFA_IO_COMP_STATUS_REMOTE_ERROR_FEATURE_MISMATCH:
552553
case EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_LENGTH:
553554
return IBV_WC_REM_INV_REQ_ERR;
554555
case EFA_IO_COMP_STATUS_LOCAL_ERROR_UNRESP_REMOTE:

0 commit comments

Comments
 (0)