Skip to content

Commit 27fcd2d

Browse files
authored
Merge pull request #2336 from larrystevenwise/master
openib btl: remove BTL_OPENIB_FAILOVER_ENABLED code
2 parents 479fe59 + 7050969 commit 27fcd2d

File tree

10 files changed

+0
-959
lines changed

10 files changed

+0
-959
lines changed

opal/mca/btl/openib/Makefile.am

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ sources = \
6868
connect/btl_openib_connect_empty.h \
6969
connect/connect.h
7070

71-
# If we have failover support, build that file
72-
if MCA_btl_openib_enable_failover
73-
sources += \
74-
btl_openib_failover.c \
75-
btl_openib_failover.h
76-
endif
77-
7871
# If we have rdmacm support, build that CPC
7972
if MCA_btl_openib_have_rdmacm
8073
sources += \

opal/mca/btl/openib/btl_openib.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,23 +1850,13 @@ int mca_btl_openib_sendi( struct mca_btl_base_module_t* btl,
18501850
assert(max_data == payload_size);
18511851
}
18521852

1853-
#if BTL_OPENIB_FAILOVER_ENABLED
1854-
send_signaled = 1;
1855-
#else
18561853
send_signaled = qp_need_signal(ep, qp, payload_size + header_size, do_rdma);
1857-
#endif
18581854
ib_rc = post_send(ep, to_send_frag(item), do_rdma, send_signaled);
18591855

18601856
if (!ib_rc) {
18611857
if (0 == send_signaled) {
18621858
MCA_BTL_IB_FRAG_RETURN(frag);
18631859
}
1864-
#if BTL_OPENIB_FAILOVER_ENABLED
1865-
else {
1866-
/* Return up in case needed for failover */
1867-
*descriptor = (struct mca_btl_base_descriptor_t *) frag;
1868-
}
1869-
#endif
18701860
OPAL_THREAD_UNLOCK(&ep->endpoint_lock);
18711861

18721862
return OPAL_SUCCESS;

opal/mca/btl/openib/btl_openib.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ struct mca_btl_openib_component_t {
241241
opal_event_base_t *async_evbase; /**< Async event base */
242242
bool use_async_event_thread; /**< Use the async event handler */
243243
mca_btl_openib_srq_manager_t srq_manager; /**< Hash table for all BTL SRQs */
244-
#if BTL_OPENIB_FAILOVER_ENABLED
245-
bool port_error_failover; /**< Report port errors to speed up failover */
246-
#endif
247244
/* declare as an int instead of btl_openib_device_type_t since there is no
248245
guarantee about the size of an enum. this value will be registered as an
249246
integer with the MCA variable system */
@@ -310,9 +307,6 @@ struct mca_btl_openib_component_t {
310307
int memory_registration_verbose_level;
311308
int memory_registration_verbose;
312309
int ignore_locality;
313-
#if BTL_OPENIB_FAILOVER_ENABLED
314-
int verbose_failover;
315-
#endif
316310
#if OPAL_CUDA_SUPPORT
317311
bool cuda_async_send;
318312
bool cuda_async_recv;

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@
8484
#include "btl_openib_ini.h"
8585
#include "btl_openib_mca.h"
8686
#include "btl_openib_xrc.h"
87-
#if BTL_OPENIB_FAILOVER_ENABLED
88-
#include "btl_openib_failover.h"
89-
#endif
9087
#include "btl_openib_async.h"
9188
#include "connect/base.h"
9289
#include "btl_openib_ip.h"
@@ -504,12 +501,6 @@ static void btl_openib_control(mca_btl_base_module_t* btl,
504501
mca_btl_openib_endpoint_connected(ep);
505502
}
506503
break;
507-
#if BTL_OPENIB_FAILOVER_ENABLED
508-
case MCA_BTL_OPENIB_CONTROL_EP_BROKEN:
509-
case MCA_BTL_OPENIB_CONTROL_EP_EAGER_RDMA_ERROR:
510-
btl_openib_handle_failover_control_messages(ctl_hdr, ep);
511-
break;
512-
#endif
513504
default:
514505
BTL_ERROR(("Unknown message type received by BTL"));
515506
break;
@@ -3452,20 +3443,8 @@ static void handle_wc(mca_btl_openib_device_t* device, const uint32_t cq,
34523443
opal_list_item_t *i;
34533444
while((i = opal_list_remove_first(&to_send_frag(des)->coalesced_frags))) {
34543445
btl_ownership = (to_base_frag(i)->base.des_flags & MCA_BTL_DES_FLAGS_BTL_OWNERSHIP);
3455-
#if BTL_OPENIB_FAILOVER_ENABLED
3456-
/* The check for the callback flag is only needed when running
3457-
* with the failover case because there is a chance that a fragment
3458-
* generated from a sendi call (which does not set the flag) gets
3459-
* coalesced. In normal operation, this cannot happen as the sendi
3460-
* call will never queue up a fragment which could potentially become
3461-
* a coalesced fragment. It will revert to a regular send. */
3462-
if (to_base_frag(i)->base.des_flags & MCA_BTL_DES_SEND_ALWAYS_CALLBACK) {
3463-
#endif
34643446
to_base_frag(i)->base.des_cbfunc(&openib_btl->super, endpoint,
34653447
&to_base_frag(i)->base, OPAL_SUCCESS);
3466-
#if BTL_OPENIB_FAILOVER_ENABLED
3467-
}
3468-
#endif
34693448
if( btl_ownership ) {
34703449
mca_btl_openib_free(&openib_btl->super, &to_base_frag(i)->base);
34713450
}
@@ -3590,14 +3569,9 @@ static void handle_wc(mca_btl_openib_device_t* device, const uint32_t cq,
35903569
}
35913570
}
35923571

3593-
#if BTL_OPENIB_FAILOVER_ENABLED
3594-
mca_btl_openib_handle_endpoint_error(openib_btl, des, qp,
3595-
remote_proc, endpoint);
3596-
#else
35973572
if(openib_btl)
35983573
openib_btl->error_cb(&openib_btl->super, MCA_BTL_ERROR_FLAGS_FATAL,
35993574
(struct opal_proc_t*)remote_proc, NULL);
3600-
#endif
36013575
}
36023576

36033577
static int poll_device(mca_btl_openib_device_t* device, int count)
@@ -3808,9 +3782,6 @@ static int btl_openib_component_progress(void)
38083782
if(openib_btl->device->got_port_event) {
38093783
/* These are non-fatal so just ignore it. */
38103784
openib_btl->device->got_port_event = false;
3811-
#if BTL_OPENIB_FAILOVER_ENABLED
3812-
mca_btl_openib_handle_btl_error(openib_btl);
3813-
#endif
38143785
}
38153786
}
38163787
return count;

opal/mca/btl/openib/btl_openib_endpoint.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,6 @@ static inline int post_send(mca_btl_openib_endpoint_t *ep,
584584
BTL_OPENIB_FOOTER_HTON(*ftr);
585585

586586
sr_desc->wr.rdma.rkey = ep->eager_rdma_remote.rkey;
587-
#if BTL_OPENIB_FAILOVER_ENABLED
588-
/* frag->ftr is unused on the sending fragment, so use it
589-
* to indicate it is an eager fragment. A non-zero value
590-
* indicates it is eager, and the value indicates the
591-
* location in the eager RDMA array that it lives. */
592-
frag->ftr = (mca_btl_openib_footer_t*)(long)(1 + head);
593-
#endif
594587
sr_desc->wr.rdma.remote_addr =
595588
ep->eager_rdma_remote.base.lval +
596589
head * openib_btl->eager_rdma_frag_size +

0 commit comments

Comments
 (0)