229 uint32_t tm_colours = 0;
M0_INTERNAL m0_bcount_t m0_net_domain_get_max_buffer_segment_size(struct m0_net_domain *dom)
static int ut_tm_prov_event_cb_calls
M0_INTERNAL void m0_net_buffer_pool_fini(struct m0_net_buffer_pool *pool)
m0_bcount_t ntm_recv_queue_min_recv_size
M0_INTERNAL void m0_chan_wait(struct m0_clink *link)
struct m0_net_transfer_mc * nb_tm
uint32_t ntm_recv_queue_min_length
M0_INTERNAL void m0_mutex_unlock(struct m0_mutex *mutex)
void m0_net_domain_fini(struct m0_net_domain *dom)
M0_INTERNAL int m0_net_tm_start(struct m0_net_transfer_mc *tm, const char *addr)
struct m0_net_buffer_pool * nb_pool
static int ut_tm_prov_stop(struct m0_net_transfer_mc *tm, bool cancel)
M0_INTERNAL void m0_clink_init(struct m0_clink *link, m0_chan_cb_t cb)
M0_INTERNAL void m0_clink_del(struct m0_clink *link)
M0_INTERNAL void m0_clink_del_lock(struct m0_clink *link)
int m0_thread_join(struct m0_thread *q)
static void ut_passive_bulk_recv_cb(const struct m0_net_buffer_event *ev)
static struct m0_net_buffer * pool_colour_buffer_add(struct m0_net_transfer_mc *tm)
void ut_tm_prov_event_cb(const struct m0_net_tm_event *ev)
static bool ut_end_point_create_called
M0_INTERNAL bool m0_mutex_is_not_locked(const struct m0_mutex *mutex)
M0_INTERNAL void m0_net_buffer_pool_unlock(struct m0_net_buffer_pool *pool)
static void ut_active_bulk_recv_cb(const struct m0_net_buffer_event *ev)
const struct m0_net_buffer_pool_ops * nbp_ops
enum m0_net_tm_state ntm_state
struct m0_thread ut_del_thread
struct m0_tl * nbp_colours
static void ut_active_bulk_send_cb(const struct m0_net_buffer_event *ev)
M0_INTERNAL bool m0_net_buffer_del(struct m0_net_buffer *buf, struct m0_net_transfer_mc *tm)
M0_INTERNAL void m0_mutex_lock(struct m0_mutex *mutex)
static bool ut_tm_prov_stop_called
struct m0_net_buffer * nbe_buffer
M0_INTERNAL int m0_net_tm_pool_attach(struct m0_net_transfer_mc *tm, struct m0_net_buffer_pool *bufpool, const struct m0_net_buffer_callbacks *callbacks, m0_bcount_t min_recv_size, uint32_t max_recv_msgs, uint32_t min_recv_queue_len)
M0_INTERNAL void m0_net_domain_buffer_pool_not_empty(struct m0_net_buffer_pool *pool)
static struct m0_net_buffer_pool * pool_prov
static struct m0_net_tm_callbacks ut_tm_prov_cb
static struct @424 ut_xprt_pvt
const struct m0_net_buffer_callbacks * ntm_recv_pool_callbacks
static void test_net_tm_prov(void)
M0_INTERNAL int m0_net_tm_init(struct m0_net_transfer_mc *tm, struct m0_net_domain *dom)
static void ut_msg_send_cb(const struct m0_net_buffer_event *ev)
uint32_t ntm_recv_queue_max_recv_msgs
M0_INTERNAL void m0_net_tm_fini(struct m0_net_transfer_mc *tm)
static struct m0_net_xprt_ops ut_xprt_ops
M0_INTERNAL bool m0_mutex_is_locked(const struct m0_mutex *mutex)
static struct m0_net_domain ut_prov_dom
void(* ntc_event_cb)(const struct m0_net_tm_event *ev)
M0_INTERNAL void m0_net_tm_pool_length_set(struct m0_net_transfer_mc *tm, uint32_t len)
static bool pool_not_empty_called
struct m0_atomic64 ref_cnt
static bool ut_dom_init_called
static int ut_tm_stop(struct m0_net_transfer_mc *tm, bool cancel)
void m0_thread_fini(struct m0_thread *q)
static struct m0_stob_domain * dom
void(* nbpo_not_empty)(struct m0_net_buffer_pool *)
struct m0_atomic64 ntm_recv_queue_deficit
static bool ut_dom_fini_called
M0_INTERNAL void m0_net_buffer_pool_lock(struct m0_net_buffer_pool *pool)
static bool ut_tm_init_called
struct m0_list_link ntm_dom_linkage
static const struct m0_net_buffer_callbacks ut_buf_prov_cb
M0_INTERNAL bool m0_list_contains(const struct m0_list *list, const struct m0_list_link *link)
static bool ut_buf_del_called
static struct m0_thread ut_tm_thread
M0_INTERNAL m0_bcount_t m0_net_domain_get_max_buffer_size(struct m0_net_domain *dom)
m0_net_buffer_cb_proc_t nbc_cb[M0_NET_QT_NR]
static struct m0_net_transfer_mc ut_prov_tm2
struct m0_tl ntm_q[M0_NET_QT_NR]
M0_INTERNAL void m0_net_tm_colour_set(struct m0_net_transfer_mc *tm, uint32_t colour)
M0_INTERNAL int m0_net_tm_stop(struct m0_net_transfer_mc *tm, bool abort)
static struct m0_net_transfer_mc ut_prov_tm1
static int64_t m0_atomic64_get(const struct m0_atomic64 *a)
void m0_clink_add_lock(struct m0_chan *chan, struct m0_clink *link)
static bool ut_tm_start_called
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
struct m0_net_end_point * ntm_ep
M0_INTERNAL uint32_t m0_net_tm_colour_get(struct m0_net_transfer_mc *tm)
#define M0_ALLOC_PTR(ptr)
M0_INTERNAL void m0_clink_add(struct m0_chan *chan, struct m0_clink *link)
static const struct m0_net_buffer_pool_ops b_ops
M0_INTERNAL int m0_net_buffer_pool_provision(struct m0_net_buffer_pool *pool, uint32_t buf_nr)
M0_INTERNAL void m0_clink_fini(struct m0_clink *link)
static void ut_prov_msg_recv_cb(const struct m0_net_buffer_event *ev)
M0_INTERNAL int32_t m0_net_domain_get_max_buffer_segments(struct m0_net_domain *dom)
static void ut_tm_stop_fini(struct m0_net_transfer_mc *tm)
M0_INTERNAL void m0_net_buffer_pool_put(struct m0_net_buffer_pool *pool, struct m0_net_buffer *buf, uint32_t colour)
static void ut_passive_bulk_send_cb(const struct m0_net_buffer_event *ev)
static struct bulkio_params * bp
static struct m0_net_xprt ut_xprt
int(* xo_tm_stop)(struct m0_net_transfer_mc *tm, bool cancel)
static void provision_buffer_validate_colour(struct m0_net_buffer *nb, struct m0_net_transfer_mc *tm)
#define m0_tl_for(name, head, obj)
struct m0_ut_suite m0_net_tm_prov_ut
M0_INTERNAL int m0_net_buffer_pool_init(struct m0_net_buffer_pool *pool, struct m0_net_domain *ndom, uint32_t threshold, uint32_t seg_nr, m0_bcount_t seg_size, uint32_t colours, unsigned shift, bool dont_dump)
const struct m0_net_tm_callbacks * ntm_callbacks
static void ut_pool_low(struct m0_net_buffer_pool *bp)
static void ut_pool_not_empty(struct m0_net_buffer_pool *bp)
struct m0_net_transfer_mc * nte_tm
struct m0_net_buffer_pool * ntm_recv_pool