Motr  M0
Collaboration diagram for Test Node:

Data Structures

struct  m0_net_test_node_cfg
 
struct  m0_net_test_node_ctx
 

Enumerations

enum  m0_net_test_node_state {
  M0_NET_TEST_NODE_UNINITIALIZED, M0_NET_TEST_NODE_INITIALIZED, M0_NET_TEST_NODE_RUNNING, M0_NET_TEST_NODE_FAILED,
  M0_NET_TEST_NODE_DONE, M0_NET_TEST_NODE_STOPPED
}
 

Functions

int m0_net_test_node_init (struct m0_net_test_node_ctx *ctx, struct m0_net_test_node_cfg *cfg)
 
void m0_net_test_node_fini (struct m0_net_test_node_ctx *ctx)
 
bool m0_net_test_node_invariant (struct m0_net_test_node_ctx *ctx)
 
int m0_net_test_node_start (struct m0_net_test_node_ctx *ctx)
 
void m0_net_test_node_stop (struct m0_net_test_node_ctx *ctx)
 
int m0_net_test_node_module_initfini (struct m0_net_test_node_cfg *cfg)
 

Detailed Description

See also
Motr Network Benchmark

Enumeration Type Documentation

◆ m0_net_test_node_state

Node state

Enumerator
M0_NET_TEST_NODE_UNINITIALIZED 
M0_NET_TEST_NODE_INITIALIZED 
M0_NET_TEST_NODE_RUNNING 
M0_NET_TEST_NODE_FAILED 
M0_NET_TEST_NODE_DONE 
M0_NET_TEST_NODE_STOPPED 

Definition at line 181 of file node.h.

Function Documentation

◆ m0_net_test_node_fini()

void m0_net_test_node_fini ( struct m0_net_test_node_ctx ctx)

Finalize node data structures.

See also
Logical Specification

Definition at line 915 of file node.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_net_test_node_init()

int m0_net_test_node_init ( struct m0_net_test_node_ctx ctx,
struct m0_net_test_node_cfg cfg 
)

Initialize node data structures.

Parameters
ctxnode context.
cfgnode configuration.
See also
Logical Specification
Note
ctx->ntnc_cfg should be set and should not be changed after m0_net_test_node_init().

Definition at line 909 of file node.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_net_test_node_invariant()

bool m0_net_test_node_invariant ( struct m0_net_test_node_ctx ctx)

Invariant for m0_net_test_node_ctx.

◆ m0_net_test_node_module_initfini()

int m0_net_test_node_module_initfini ( struct m0_net_test_node_cfg cfg)

Helper for kernel module node. This function is M0_EXPORTED, so it can be called from m0nettest.ko.

Parameters
cfgnode configuration. Call with NULL value to finalize.

Definition at line 954 of file node.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_net_test_node_start()

int m0_net_test_node_start ( struct m0_net_test_node_ctx ctx)

Start test node.

See also
Logical Specification

Definition at line 921 of file node.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_net_test_node_stop()

void m0_net_test_node_stop ( struct m0_net_test_node_ctx ctx)

Stop test node.

See also
Logical Specification

Definition at line 932 of file node.c.

Here is the call graph for this function:
Here is the caller graph for this function: