30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 100 &
req->heq_process_fid));
103 .hae_confd_fids = {},
104 .hae_confd_eps =
NULL,
106 .hae_active_rm_ep =
NULL,
236 .hcf_rpc_machine = &
rpc_ctx->hurc_rpc_machine,
237 .hcf_reqh = &
rpc_ctx->hurc_reqh,
251 ctx->huc_entrypoint_request_nr = 0;
252 ctx->huc_entrypoint_replied_nr = 0;
253 ctx->huc_link_connected_nr = 0;
272 ctx->huc_entrypoint_request_nr = 0;
273 ctx->huc_entrypoint_replied_nr = 0;
274 ctx->huc_link_reused_nr = 0;
299 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL void m0_chan_wait(struct m0_clink *link)
static void ha_ut_usecase_link_disconnected(struct m0_ha *ha, struct m0_ha_link *hl)
struct m0_ha_entrypoint_client h_entrypoint_client
static void ha_ut_usecase_link_check(struct ha_ut_usecase_ctx *huc, struct m0_ha_link *hl)
M0_INTERNAL void m0_mutex_unlock(struct m0_mutex *mutex)
M0_INTERNAL struct m0_ha_link * m0_ha_connect(struct m0_ha *ha)
M0_INTERNAL void m0_clink_init(struct m0_clink *link, m0_chan_cb_t cb)
M0_INTERNAL void m0_clink_del_lock(struct m0_clink *link)
M0_INTERNAL void m0_ha_fini(struct m0_ha *ha)
static struct io_request req
static uint64_t tag(uint8_t code, uint64_t id)
#define M0_FID_INIT(container, key)
M0_INTERNAL int m0_ha_start(struct m0_ha *ha)
static void ha_ut_usecase_msg_is_not_delivered(struct m0_ha *ha, struct m0_ha_link *hl, uint64_t tag)
M0_INTERNAL void m0_ha_ut_rpc_ctx_init(struct m0_ha_ut_rpc_ctx *ctx)
int huc_entrypoint_request_nr
#define container_of(ptr, type, member)
M0_INTERNAL void m0_mutex_lock(struct m0_mutex *mutex)
M0_INTERNAL void m0_ha_entrypoint_client_request(struct m0_ha_entrypoint_client *ecl)
M0_INTERNAL const char * m0_rpc_machine_ep(const struct m0_rpc_machine *rmach)
struct m0_fop_getxattr_rep * rep
static void ha_ut_usecase_msg_is_delivered(struct m0_ha *ha, struct m0_ha_link *hl, uint64_t tag)
static void ha_ut_usecase_entrypoint_replied(struct m0_ha *ha, struct m0_ha_entrypoint_rep *rep)
void(* hao_entrypoint_request)(struct m0_ha *ha, const struct m0_ha_entrypoint_req *req, const struct m0_uint128 *req_id)
M0_INTERNAL void m0_ha_disconnect(struct m0_ha *ha)
static void ha_ut_usecase_link_reused(struct m0_ha *ha, const struct m0_uint128 *req_id, struct m0_ha_link *hl)
M0_INTERNAL void m0_ha_stop(struct m0_ha *ha)
#define M0_FID_TINIT(type, container, key)
int huc_link_disconnected_nr
struct m0_ha_link * huc_link_in1
struct m0_ha_link * huc_link_in2
int huc_msg_is_not_delivered_nr
struct m0_ha_link * huc_link_out
static void ha_ut_usecase_link_connected(struct m0_ha *ha, const struct m0_uint128 *req_id, struct m0_ha_link *hl)
static void ha_ut_usecase_entrypoint_request(struct m0_ha *ha, const struct m0_ha_entrypoint_req *req, const struct m0_uint128 *req_id)
struct m0_ha_entrypoint_client * huw_entrypoint_client
M0_INTERNAL void m0_mutex_init(struct m0_mutex *mutex)
static void ha_ut_usecase_link_is_disconnecting(struct m0_ha *ha, struct m0_ha_link *hl)
struct m0_clink huw_clink
static struct ha_ut_usecase_ctx * ha_ut_ha2usecase_ctx(struct m0_ha *ha)
static struct m0_clink clink[RDWR_REQUEST_MAX]
int huc_entrypoint_replied_nr
static struct fdmi_ctx ctx
M0_INTERNAL void m0_ha_disconnect_incoming(struct m0_ha *ha, struct m0_ha_link *hl)
M0_INTERNAL void m0_ha_ut_rpc_ctx_fini(struct m0_ha_ut_rpc_ctx *ctx)
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
void m0_clink_add_lock(struct m0_chan *chan, struct m0_clink *link)
static bool ha_ut_ha_wait_available(struct m0_clink *clink)
void m0_ha_ut_ha_usecase(void)
M0_INTERNAL int m0_ha_init(struct m0_ha *ha, struct m0_ha_cfg *ha_cfg)
#define M0_ALLOC_PTR(ptr)
int huc_msg_is_delivered_nr
int huc_link_is_disconnecting_nr
M0_INTERNAL void m0_mutex_fini(struct m0_mutex *mutex)
M0_INTERNAL void m0_clink_fini(struct m0_clink *link)
M0_INTERNAL struct m0_chan * m0_ha_entrypoint_client_chan(struct m0_ha_entrypoint_client *ecl)
static void ha_ut_usecase_msg_received(struct m0_ha *ha, struct m0_ha_link *hl, struct m0_ha_msg *msg, uint64_t tag)
static const struct m0_ha_ops ha_ut_usecase_ha_ops
int huc_link_connected_nr
void m0_ha_entrypoint_reply(struct m0_ha *ha, const struct m0_uint128 *req_id, const struct m0_ha_entrypoint_rep *rep, struct m0_ha_link **hl_ptr)