Motr  M0
node_bulk_ctx Struct Reference
Collaboration diagram for node_bulk_ctx:
Collaboration graph

Data Fields

struct m0_net_test_nh nbc_nh
 
struct m0_net_test_network_ctx nbc_net
 
struct m0_net_test_servicenbc_svc
 
struct m0_thread nbc_thread
 
size_t nbc_buf_ping_nr
 
size_t nbc_buf_bulk_nr
 
m0_bcount_t nbc_buf_size_ping
 
m0_bcount_t nbc_buf_size_bulk
 
size_t nbc_bd_nr_max
 
struct buf_status_bulknbc_bs
 
size_t nbc_bs_nr
 
struct buf_status_pingnbc_bsp
 
struct m0_mutex nbc_bulk_mutex
 
struct m0_net_test_ringbuf nbc_rb_ping_unused
 
struct m0_net_test_ringbuf nbc_rb_bulk_unused
 
struct m0_net_test_ringbuf nbc_rb_bulk_queued
 
struct m0_net_test_ringbuf nbc_rb_bulk_final
 
size_t nbc_client_concurrency
 
struct server_status_bulknbc_sstatus
 
struct m0_chan nbc_stop_chan
 
struct m0_mutex nbc_stop_chan_mutex
 
struct m0_clink nbc_stop_clink
 
struct m0_atomic64 nbc_stop_flag
 
bool nbc_callback_executed
 

Detailed Description

Bulk test context. Buffer mapping for the test client: even buffers - for sending odd buffers - for receiving first (nbc_client_concurrency * 2) buffers for server #0, next (nbc_client_concurrency * 2) buffers for server #1 and so on. Buffer mapping for the test server: All buffers are used for receiving and sending.

Todo:
move equal parts from node_bulk_ctx & node_ping_ctx to single struct

Definition at line 215 of file node_bulk.c.

Field Documentation

◆ nbc_bd_nr_max

size_t nbc_bd_nr_max

Maximum number of buffer descriptors, stored to ping buffer

Definition at line 233 of file node_bulk.c.

◆ nbc_bs

struct buf_status_bulk* nbc_bs

Bulk buffer states

Definition at line 235 of file node_bulk.c.

◆ nbc_bs_nr

size_t nbc_bs_nr

Number of bulk buffer states

Definition at line 237 of file node_bulk.c.

◆ nbc_bsp

struct buf_status_ping* nbc_bsp

Ping buffer states

Definition at line 239 of file node_bulk.c.

◆ nbc_buf_bulk_nr

size_t nbc_buf_bulk_nr

Number of bulk buffers

Definition at line 227 of file node_bulk.c.

◆ nbc_buf_ping_nr

size_t nbc_buf_ping_nr

Number of ping buffers

Definition at line 225 of file node_bulk.c.

◆ nbc_buf_size_bulk

m0_bcount_t nbc_buf_size_bulk

Bulk buffer size

Definition at line 231 of file node_bulk.c.

◆ nbc_buf_size_ping

m0_bcount_t nbc_buf_size_ping

Ping buffer size

Definition at line 229 of file node_bulk.c.

◆ nbc_bulk_mutex

struct m0_mutex nbc_bulk_mutex

Mutex for mutual nbc_rb_bulk_unused ring buf start/end increment

Definition at line 241 of file node_bulk.c.

◆ nbc_callback_executed

bool nbc_callback_executed

At least one callback was executed. Set to true in every callback.

Definition at line 282 of file node_bulk.c.

◆ nbc_client_concurrency

size_t nbc_client_concurrency

Test client concurrency. Test client will send nbc_client_concurrency test messages to every server simultaneously.

Definition at line 260 of file node_bulk.c.

◆ nbc_net

struct m0_net_test_network_ctx nbc_net

Network context for testing

Definition at line 219 of file node_bulk.c.

◆ nbc_nh

struct m0_net_test_nh nbc_nh

Node helper

Definition at line 217 of file node_bulk.c.

◆ nbc_rb_bulk_final

struct m0_net_test_ringbuf nbc_rb_bulk_final

List of bulk transfers, that are in final state.

Definition at line 254 of file node_bulk.c.

◆ nbc_rb_bulk_queued

struct m0_net_test_ringbuf nbc_rb_bulk_queued

List of added to passive network queue buffers. Network buffer descriptors wasn't sent yet for these buffers.

Definition at line 250 of file node_bulk.c.

◆ nbc_rb_bulk_unused

struct m0_net_test_ringbuf nbc_rb_bulk_unused

List of unused bulk buffers

Definition at line 245 of file node_bulk.c.

◆ nbc_rb_ping_unused

struct m0_net_test_ringbuf nbc_rb_ping_unused

List of unused message buffers

Definition at line 243 of file node_bulk.c.

◆ nbc_sstatus

struct server_status_bulk* nbc_sstatus

Per server status for the test client

Definition at line 262 of file node_bulk.c.

◆ nbc_stop_chan

struct m0_chan nbc_stop_chan

Channel for bulk testing inner loop. STOP command will send signal to this channel.

Definition at line 267 of file node_bulk.c.

◆ nbc_stop_chan_mutex

struct m0_mutex nbc_stop_chan_mutex

Mutex for node_bulk_ctx.nbc_stop_chan

Definition at line 269 of file node_bulk.c.

◆ nbc_stop_clink

struct m0_clink nbc_stop_clink

Clink for bulk testing inner loop. This clink is head for clink group, consists of this clink and network transfer machine notification clink.

Definition at line 275 of file node_bulk.c.

◆ nbc_stop_flag

struct m0_atomic64 nbc_stop_flag

Stop flag

Definition at line 277 of file node_bulk.c.

◆ nbc_svc

struct m0_net_test_service* nbc_svc

Test service. Used when changing service state.

Definition at line 221 of file node_bulk.c.

◆ nbc_thread

struct m0_thread nbc_thread

Worker thread

Definition at line 223 of file node_bulk.c.


The documentation for this struct was generated from the following file: