Skip to content

Commit

Permalink
Merge pull request #10412 from tvegas1/srd_iface
Browse files Browse the repository at this point in the history
UCT/IB/EFA/SRD: Initial interface add
  • Loading branch information
brminich authored Jan 23, 2025
2 parents 798c4b0 + 8e199aa commit 969ed1d
Show file tree
Hide file tree
Showing 8 changed files with 500 additions and 23 deletions.
14 changes: 8 additions & 6 deletions src/uct/ib/efa/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ if HAVE_EFA

module_LTLIBRARIES = libuct_ib_efa.la
libuct_ib_efa_la_CPPFLAGS = $(BASE_CPPFLAGS) $(IBVERBS_CPPFLAGS)
libuct_ib_efa_la_CFLAGS = $(BASE_CFLAGS)
libuct_ib_efa_la_LDFLAGS = $(EFA_LIB) $(IBVERBS_LDFLAGS) \
-version-info $(SOVERSION)

libuct_ib_efa_la_CFLAGS = $(BASE_CFLAGS) $(LT_CFLAGS)
libuct_ib_efa_la_LIBADD = $(top_builddir)/src/ucs/libucs.la \
$(top_builddir)/src/uct/libuct.la \
$(top_builddir)/src/uct/ib/libuct_ib.la
libuct_ib_efa_la_LDFLAGS = $(EFA_LIB) $(IBVERBS_LDFLAGS) \
-version-info $(SOVERSION)

libuct_ib_efa_la_SOURCES = ib_efa_md.c
libuct_ib_efa_la_SOURCES = base/ib_efa_md.c \
srd/srd_iface.c

noinst_HEADERS = ib_efa.h
noinst_HEADERS = base/ib_efa.h \
srd/srd_iface.h \
srd/srd_def.h

PKG_CONFIG_NAME=ib-efa

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# include "config.h"
#endif

#include <uct/ib/efa/ib_efa.h>
#include <uct/ib/efa/base/ib_efa.h>
#include <ucs/type/status.h>
#include <ucs/debug/log.h>

Expand Down Expand Up @@ -104,12 +104,16 @@ static uct_ib_md_ops_t uct_ib_efa_md_ops = {

UCT_IB_MD_DEFINE_ENTRY(efa, uct_ib_efa_md_ops);

extern uct_tl_t UCT_TL_NAME(srd);

void UCS_F_CTOR uct_efa_init(void)
{
ucs_list_add_head(&uct_ib_ops, &UCT_IB_MD_OPS_NAME(efa).list);
uct_tl_register(&uct_ib_component, &UCT_TL_NAME(srd));
}

void UCS_F_DTOR uct_efa_cleanup(void)
{
uct_tl_unregister(&UCT_TL_NAME(srd));
ucs_list_del(&UCT_IB_MD_OPS_NAME(efa).list);
}
29 changes: 29 additions & 0 deletions src/uct/ib/efa/srd/srd_def.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2025. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/

#ifndef SRD_DEF_H_
#define SRD_DEF_H_

#include <uct/ib/base/ib_iface.h>
#include <ucs/datastruct/frag_list.h>


typedef struct uct_srd_neth {
uint32_t packet_type;
} UCS_S_PACKED uct_srd_neth_t;


typedef struct uct_srd_iface_addr {
uct_ib_uint24_t qp_num;
} uct_srd_iface_addr_t;


typedef struct uct_srd_ep_addr {
uct_srd_iface_addr_t iface_addr;
uct_ib_uint24_t ep_id;
} uct_srd_ep_addr_t;

#endif
Loading

0 comments on commit 969ed1d

Please sign in to comment.