Skip to content

Commit

Permalink
prov/efa: Remove send_wr_pool and recv_wr_pool from dgram_ep
Browse files Browse the repository at this point in the history
These fields are not being used by dgram_ep any more.

Signed-off-by: Jessie Yang <[email protected]>
  • Loading branch information
jiaxiyan committed Nov 20, 2024
1 parent b30ce18 commit 8fa3895
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
14 changes: 0 additions & 14 deletions prov/efa/src/dgram/efa_dgram_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ static int efa_dgram_ep_close(fid_t fid)

ep = container_of(fid, struct efa_dgram_ep, base_ep.util_ep.ep_fid.fid);

ofi_bufpool_destroy(ep->recv_wr_pool);
ofi_bufpool_destroy(ep->send_wr_pool);
efa_dgram_ep_destroy(ep);

return 0;
Expand Down Expand Up @@ -444,16 +442,6 @@ int efa_dgram_ep_open(struct fid_domain *domain_fid, struct fi_info *user_info,
*/
assert(user_info->tx_attr->iov_limit <= 2);

ret = ofi_bufpool_create(&ep->send_wr_pool,
sizeof(struct efa_send_wr), 16, 0, 1024, 0);
if (ret)
goto err_ep_destroy;

ret = ofi_bufpool_create(&ep->recv_wr_pool,
sizeof(struct efa_recv_wr), 16, 0, 1024, 0);
if (ret)
goto err_send_wr_destroy;

ep->base_ep.domain = domain;

*ep_fid = &ep->base_ep.util_ep.ep_fid;
Expand All @@ -468,8 +456,6 @@ int efa_dgram_ep_open(struct fid_domain *domain_fid, struct fi_info *user_info,

return 0;

err_send_wr_destroy:
ofi_bufpool_destroy(ep->send_wr_pool);
err_ep_destroy:
efa_dgram_ep_destroy(ep);
return ret;
Expand Down
3 changes: 0 additions & 3 deletions prov/efa/src/dgram/efa_dgram_ep.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ struct efa_dgram_ep {

struct efa_dgram_cq *rcq;
struct efa_dgram_cq *scq;

struct ofi_bufpool *send_wr_pool;
struct ofi_bufpool *recv_wr_pool;
};

struct efa_send_wr {
Expand Down

0 comments on commit 8fa3895

Please sign in to comment.