Skip to content

Commit

Permalink
prov/efa: Move struct efa_ep_addr to efa_base_ep
Browse files Browse the repository at this point in the history
struct efa_ep_addr is used in both the DGRAM and RDM providers, so the
structure definition should be in a common file, and not an RDM only
file.

Signed-off-by: Seth Zegelstein <[email protected]>
  • Loading branch information
a-szegel committed Jan 15, 2025
1 parent a93beca commit 4d46f35
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
13 changes: 13 additions & 0 deletions prov/efa/src/efa_base_ep.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ struct efa_qp {
uint32_t qkey;
};

/* raw address format. (section 1.4) */
#define EFA_GID_LEN 16

struct efa_ep_addr {
uint8_t raw[EFA_GID_LEN];
uint16_t qpn;
uint16_t pad;
uint32_t qkey;
struct efa_ep_addr *next;
};

#define EFA_EP_ADDR_LEN sizeof(struct efa_ep_addr)

struct efa_av;

struct efa_recv_wr {
Expand Down
11 changes: 0 additions & 11 deletions prov/efa/src/rdm/efa_rdm_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,7 @@

#define EFA_RDM_PROTOCOL_VERSION (4)

/* raw address format. (section 1.4) */
#define EFA_GID_LEN 16

struct efa_ep_addr {
uint8_t raw[EFA_GID_LEN];
uint16_t qpn;
uint16_t pad;
uint32_t qkey;
struct efa_ep_addr *next;
};

#define EFA_EP_ADDR_LEN sizeof(struct efa_ep_addr)

/*
* Extra Feature/Request Flags (section 2.1)
Expand Down

0 comments on commit 4d46f35

Please sign in to comment.