From c52b71821a1fd12f809179682968261910e8dd65 Mon Sep 17 00:00:00 2001 From: Seth Zegelstein Date: Wed, 15 Jan 2025 01:53:13 +0000 Subject: [PATCH] prov/efa: Move struct efa_ep_addr to efa_base_ep 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 --- prov/efa/src/efa_base_ep.h | 12 ++++++++++++ prov/efa/src/rdm/efa_rdm_protocol.h | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/prov/efa/src/efa_base_ep.h b/prov/efa/src/efa_base_ep.h index a7d1526919e..37a9a5924a8 100644 --- a/prov/efa/src/efa_base_ep.h +++ b/prov/efa/src/efa_base_ep.h @@ -27,6 +27,18 @@ struct efa_qp { uint32_t qkey; }; +#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 { diff --git a/prov/efa/src/rdm/efa_rdm_protocol.h b/prov/efa/src/rdm/efa_rdm_protocol.h index 8840ce5f401..05fe40fd36a 100644 --- a/prov/efa/src/rdm/efa_rdm_protocol.h +++ b/prov/efa/src/rdm/efa_rdm_protocol.h @@ -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)