Skip to content

Commit

Permalink
efa: Add unresponsive remote completion error
Browse files Browse the repository at this point in the history
Used to indicate completion of Tx WQEs due to unresponsive remote.

Signed-off-by: Shadi Ammouri <sammouri@amazon.com>
Signed-off-by: Firas Jahjah <firasj@amazon.com>
  • Loading branch information
ammourishadi authored and firasj committed Mar 24, 2022
1 parent 6391b5d commit ae813b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion providers/efa/efa_io_defs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
/*
* Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
* Copyright 2018-2021 Amazon.com, Inc. or its affiliates. All rights reserved.
*/

#ifndef _EFA_IO_H_
Expand Down Expand Up @@ -52,6 +52,8 @@ enum efa_io_comp_status {
EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_LENGTH = 11,
/* Unexpected status returned by responder */
EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_STATUS = 12,
/* Unresponsive remote - detected locally */
EFA_IO_COMP_STATUS_LOCAL_ERROR_UNRESP_REMOTE = 13,
};

struct efa_io_tx_meta_desc {
Expand Down
2 changes: 2 additions & 0 deletions providers/efa/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ static enum ibv_wc_status to_ibv_status(enum efa_io_comp_status status)
return IBV_WC_BAD_RESP_ERR;
case EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_LENGTH:
return IBV_WC_REM_INV_REQ_ERR;
case EFA_IO_COMP_STATUS_LOCAL_ERROR_UNRESP_REMOTE:
return IBV_WC_RESP_TIMEOUT_ERR;
case EFA_IO_COMP_STATUS_REMOTE_ERROR_BAD_ADDRESS:
default:
return IBV_WC_GENERAL_ERR;
Expand Down

0 comments on commit ae813b6

Please sign in to comment.