| 
84 | 84 | #include "btl_openib_ini.h"  | 
85 | 85 | #include "btl_openib_mca.h"  | 
86 | 86 | #include "btl_openib_xrc.h"  | 
87 |  | -#if BTL_OPENIB_FAILOVER_ENABLED  | 
88 |  | -#include "btl_openib_failover.h"  | 
89 |  | -#endif  | 
90 | 87 | #include "btl_openib_async.h"  | 
91 | 88 | #include "connect/base.h"  | 
92 | 89 | #include "btl_openib_ip.h"  | 
@@ -502,12 +499,6 @@ static void btl_openib_control(mca_btl_base_module_t* btl,  | 
502 | 499 |             mca_btl_openib_endpoint_connected(ep);  | 
503 | 500 |         }  | 
504 | 501 |         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  | 
511 | 502 |     default:  | 
512 | 503 |         BTL_ERROR(("Unknown message type received by BTL"));  | 
513 | 504 |        break;  | 
@@ -3470,20 +3461,8 @@ static void handle_wc(mca_btl_openib_device_t* device, const uint32_t cq,  | 
3470 | 3461 |                 opal_list_item_t *i;  | 
3471 | 3462 |                 while((i = opal_list_remove_first(&to_send_frag(des)->coalesced_frags))) {  | 
3472 | 3463 |                     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  | 
3482 | 3464 |                         to_base_frag(i)->base.des_cbfunc(&openib_btl->super, endpoint,  | 
3483 | 3465 |                                 &to_base_frag(i)->base, OPAL_SUCCESS);  | 
3484 |  | -#if BTL_OPENIB_FAILOVER_ENABLED  | 
3485 |  | -                    }  | 
3486 |  | -#endif  | 
3487 | 3466 |                     if( btl_ownership ) {  | 
3488 | 3467 |                         mca_btl_openib_free(&openib_btl->super, &to_base_frag(i)->base);  | 
3489 | 3468 |                     }  | 
@@ -3608,14 +3587,9 @@ static void handle_wc(mca_btl_openib_device_t* device, const uint32_t cq,  | 
3608 | 3587 |         }  | 
3609 | 3588 |     }  | 
3610 | 3589 | 
 
  | 
3611 |  | -#if BTL_OPENIB_FAILOVER_ENABLED  | 
3612 |  | -    mca_btl_openib_handle_endpoint_error(openib_btl, des, qp,  | 
3613 |  | -                                         remote_proc, endpoint);  | 
3614 |  | -#else  | 
3615 | 3590 |     if(openib_btl)  | 
3616 | 3591 |         openib_btl->error_cb(&openib_btl->super, MCA_BTL_ERROR_FLAGS_FATAL,  | 
3617 | 3592 |                              (struct opal_proc_t*)remote_proc, NULL);  | 
3618 |  | -#endif  | 
3619 | 3593 | }  | 
3620 | 3594 | 
 
  | 
3621 | 3595 | static int poll_device(mca_btl_openib_device_t* device, int count)  | 
@@ -3826,9 +3800,6 @@ static int btl_openib_component_progress(void)  | 
3826 | 3800 |         if(openib_btl->device->got_port_event) {  | 
3827 | 3801 |             /* These are non-fatal so just ignore it. */  | 
3828 | 3802 |             openib_btl->device->got_port_event = false;  | 
3829 |  | -#if BTL_OPENIB_FAILOVER_ENABLED  | 
3830 |  | -            mca_btl_openib_handle_btl_error(openib_btl);  | 
3831 |  | -#endif  | 
3832 | 3803 |         }  | 
3833 | 3804 |     }  | 
3834 | 3805 |     return count;  | 
 | 
0 commit comments