Skip to content

Commit 39438c9

Browse files
authored
Merge pull request #2351 from larrystevenwise/v2.x
openib btl: remove BTL_OPENIB_FAILOVER_ENABLED code
2 parents 77599be + 08d870e commit 39438c9

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
@@ -66,13 +66,6 @@ sources = \
6666
connect/btl_openib_connect_empty.h \
6767
connect/connect.h
6868

69-
# If we have failover support, build that file
70-
if MCA_btl_openib_enable_failover
71-
sources += \
72-
btl_openib_failover.c \
73-
btl_openib_failover.h
74-
endif
75-
7669
# If we have rdmacm support, build that CPC
7770
if MCA_btl_openib_have_rdmacm
7871
sources += \

opal/mca/btl/openib/btl_openib.c

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

1849-
#if BTL_OPENIB_FAILOVER_ENABLED
1850-
send_signaled = 1;
1851-
#else
18521849
send_signaled = qp_need_signal(ep, qp, payload_size + header_size, do_rdma);
1853-
#endif
18541850
ib_rc = post_send(ep, to_send_frag(item), do_rdma, send_signaled);
18551851

18561852
if (!ib_rc) {
18571853
if (0 == send_signaled) {
18581854
MCA_BTL_IB_FRAG_RETURN(frag);
18591855
}
1860-
#if BTL_OPENIB_FAILOVER_ENABLED
1861-
else {
1862-
/* Return up in case needed for failover */
1863-
*descriptor = (struct mca_btl_base_descriptor_t *) frag;
1864-
}
1865-
#endif
18661856
OPAL_THREAD_UNLOCK(&ep->endpoint_lock);
18671857

18681858
return OPAL_SUCCESS;

opal/mca/btl/openib/btl_openib.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,6 @@ struct mca_btl_openib_component_t {
243243
opal_event_base_t *async_evbase; /**< Async event base */
244244
bool use_async_event_thread; /**< Use the async event handler */
245245
mca_btl_openib_srq_manager_t srq_manager; /**< Hash table for all BTL SRQs */
246-
#if BTL_OPENIB_FAILOVER_ENABLED
247-
bool port_error_failover; /**< Report port errors to speed up failover */
248-
#endif
249246
/* declare as an int instead of btl_openib_device_type_t since there is no
250247
guarantee about the size of an enum. this value will be registered as an
251248
integer with the MCA variable system */
@@ -312,9 +309,6 @@ struct mca_btl_openib_component_t {
312309
int memory_registration_verbose_level;
313310
int memory_registration_verbose;
314311
int ignore_locality;
315-
#if BTL_OPENIB_FAILOVER_ENABLED
316-
int verbose_failover;
317-
#endif
318312
#if OPAL_CUDA_SUPPORT
319313
bool cuda_async_send;
320314
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"
@@ -502,12 +499,6 @@ static void btl_openib_control(mca_btl_base_module_t* btl,
502499
mca_btl_openib_endpoint_connected(ep);
503500
}
504501
break;
505-
#if BTL_OPENIB_FAILOVER_ENABLED
506-
case MCA_BTL_OPENIB_CONTROL_EP_BROKEN:
507-
case MCA_BTL_OPENIB_CONTROL_EP_EAGER_RDMA_ERROR:
508-
btl_openib_handle_failover_control_messages(ctl_hdr, ep);
509-
break;
510-
#endif
511502
default:
512503
BTL_ERROR(("Unknown message type received by BTL"));
513504
break;
@@ -3470,20 +3461,8 @@ static void handle_wc(mca_btl_openib_device_t* device, const uint32_t cq,
34703461
opal_list_item_t *i;
34713462
while((i = opal_list_remove_first(&to_send_frag(des)->coalesced_frags))) {
34723463
btl_ownership = (to_base_frag(i)->base.des_flags & MCA_BTL_DES_FLAGS_BTL_OWNERSHIP);
3473-
#if BTL_OPENIB_FAILOVER_ENABLED
3474-
/* The check for the callback flag is only needed when running
3475-
* with the failover case because there is a chance that a fragment
3476-
* generated from a sendi call (which does not set the flag) gets
3477-
* coalesced. In normal operation, this cannot happen as the sendi
3478-
* call will never queue up a fragment which could potentially become
3479-
* a coalesced fragment. It will revert to a regular send. */
3480-
if (to_base_frag(i)->base.des_flags & MCA_BTL_DES_SEND_ALWAYS_CALLBACK) {
3481-
#endif
34823464
to_base_frag(i)->base.des_cbfunc(&openib_btl->super, endpoint,
34833465
&to_base_frag(i)->base, OPAL_SUCCESS);
3484-
#if BTL_OPENIB_FAILOVER_ENABLED
3485-
}
3486-
#endif
34873466
if( btl_ownership ) {
34883467
mca_btl_openib_free(&openib_btl->super, &to_base_frag(i)->base);
34893468
}
@@ -3608,14 +3587,9 @@ static void handle_wc(mca_btl_openib_device_t* device, const uint32_t cq,
36083587
}
36093588
}
36103589

3611-
#if BTL_OPENIB_FAILOVER_ENABLED
3612-
mca_btl_openib_handle_endpoint_error(openib_btl, des, qp,
3613-
remote_proc, endpoint);
3614-
#else
36153590
if(openib_btl)
36163591
openib_btl->error_cb(&openib_btl->super, MCA_BTL_ERROR_FLAGS_FATAL,
36173592
(struct opal_proc_t*)remote_proc, NULL);
3618-
#endif
36193593
}
36203594

36213595
static int poll_device(mca_btl_openib_device_t* device, int count)
@@ -3826,9 +3800,6 @@ static int btl_openib_component_progress(void)
38263800
if(openib_btl->device->got_port_event) {
38273801
/* These are non-fatal so just ignore it. */
38283802
openib_btl->device->got_port_event = false;
3829-
#if BTL_OPENIB_FAILOVER_ENABLED
3830-
mca_btl_openib_handle_btl_error(openib_btl);
3831-
#endif
38323803
}
38333804
}
38343805
return count;

opal/mca/btl/openib/btl_openib_endpoint.h

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

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

0 commit comments

Comments
 (0)