Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions prov/efa/src/efa_av.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@ fi_addr_t efa_av_reverse_lookup_rdm_implicit(struct efa_av *av, uint16_t ahn,
return FI_ADDR_NOTAVAIL;
}

static inline int efa_av_is_valid_address(struct efa_ep_addr *addr)
{
struct efa_ep_addr all_zeros = { 0 };

return memcmp(addr->raw, all_zeros.raw, sizeof(addr->raw));
}

/**
* @brief Move the conn to the front of the LRU list to indicate that it is the
* most recently used entry
Expand Down
13 changes: 13 additions & 0 deletions prov/efa/src/efa_av.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ struct efa_av_entry {
struct efa_conn conn;
};

/**
* @brief check if an efa_ep_addr has a non-zero GID
*
* @param[in] addr address to check
* @return non-zero if valid, 0 if all-zeros
*/
static inline int efa_av_is_valid_address(struct efa_ep_addr *addr)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message says "add" but it's really being moved

{
struct efa_ep_addr all_zeros = { 0 };

return memcmp(addr->raw, all_zeros.raw, sizeof(addr->raw));
}

struct efa_cur_reverse_av_key {
uint16_t ahn;
uint16_t qpn;
Expand Down