-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fabtests/prov/efa: Fix the rnr read cq error test for efa-direct
efa-direct doesn't prepost any rx buffer internally, it posts whatever application posts, the total_send needs to be adjusted to match this behavior difference. Signed-off-by: Shi Jin <sjina@amazon.com>
- Loading branch information
1 parent
ec5917c
commit 5163e6a
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-only */ | ||
/* SPDX-FileCopyrightText: Copyright Amazon.com, Inc. or its affiliates. All | ||
* rights reserved. */ | ||
|
||
#ifndef _EFA_SHARED_H | ||
#define _EFA_SHARED_H | ||
|
||
#define EFA_FABRIC_NAME "efa" | ||
#define EFA_DIRECT_FABRIC_NAME "efa-direct" | ||
|
||
#define EFA_INFO_TYPE_IS_RDM(_info) \ | ||
(_info && _info->ep_attr && (_info->ep_attr->type == FI_EP_RDM) && \ | ||
!strcasecmp(_info->fabric_attr->name, EFA_FABRIC_NAME)) | ||
|
||
#define EFA_INFO_TYPE_IS_DIRECT(_info) \ | ||
(_info && _info->ep_attr && (_info->ep_attr->type == FI_EP_RDM) && \ | ||
!strcasecmp(_info->fabric_attr->name, EFA_DIRECT_FABRIC_NAME)) | ||
|
||
#endif /* _EFA_SHARED_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters