Motr
M0
|
Modules | |
LNet Buffer Event Queue Interface | |
LNet Transport Core Interfaces | |
LNet Transport Device | |
LNet Transport XO Interface | |
Enumerations | |
enum | { M0_NET_LNET_PID = 12345, M0_NET_LNET_XEP_ADDR_LEN = 80, M0_NET_LNET_TM_STAT_INTERVAL_SECS = 60 * 5 } |
The external interfaces of the LNet transport are obtained by including the file net/lnet/lnet.h. The m0_net_lnet_xprt variable represents the transport itself and is used as an argument to m0_net_domain_init().
An end point address for this transport is of the form:
For example:
The PID value of 12345 is used by Lustre in the kernel and is the only value currently supported. The symbolic constant M0_NET_LNET_PID provides this value.
The "*" indicates a dynamic assignment of a transfer machine identifier. This syntax is valid only when starting a transfer machine with the m0_net_tm_start() subroutine; it is intended for use by ephemeral processes like management utilities and user interactive programs, not by servers.
Some LNet transport idiosyncrasies to be aware of:
anonymous enum |
M0_INTERNAL void m0_net_lnet_dom_set_debug | ( | struct m0_net_domain * | dom, |
unsigned | dbg | ||
) |
Definition at line 977 of file lnet_main.c.
M0_INTERNAL int m0_net_lnet_ep_addr_net_cmp | ( | const char * | addr1, |
const char * | addr2 | ||
) |
Subroutine compares the network portions of two LNet end point address strings.
-1 | if any of the two strings do not have a colon character. |
int | Return value like strcmp(). |
Definition at line 941 of file lnet_main.c.
M0_INTERNAL void m0_net_lnet_fini | ( | void | ) |
Definition at line 933 of file lnet_main.c.
M0_INTERNAL int m0_net_lnet_ifaces_get | ( | struct m0_net_domain * | dom, |
char *** | addrs | ||
) |
Gets a list of strings corresponding to the local LNET network interfaces. The returned array must be released using m0_net_lnet_ifaces_put().
dom | Pointer to the domain. |
addrs | A NULL-terminated (like argv) array of NID strings is returned. |
Definition at line 955 of file lnet_main.c.
M0_INTERNAL void m0_net_lnet_ifaces_put | ( | struct m0_net_domain * | dom, |
char *** | addrs | ||
) |
Releases the string array returned by m0_net_lnet_ifaces_get().
Definition at line 966 of file lnet_main.c.
M0_INTERNAL int m0_net_lnet_init | ( | void | ) |
Definition at line 923 of file lnet_main.c.
M0_INTERNAL void m0_net_lnet_tm_set_debug | ( | struct m0_net_transfer_mc * | tm, |
unsigned | dbg | ||
) |
Definition at line 992 of file lnet_main.c.
|
static |
|
static |
module_param | ( | quiet | , |
bool | , | ||
S_IRUGO | |||
) |
module_param | ( | verbose | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | client_only | , |
bool | , | ||
S_IRUGO | |||
) |
module_param | ( | server_only | , |
bool | , | ||
S_IRUGO | |||
) |
module_param | ( | async_events | , |
bool | , | ||
S_IRUGO | |||
) |
module_param | ( | nr_bufs | , |
uint | , | ||
S_IRUGO | |||
) |
module_param | ( | nr_recv_bufs | , |
uint | , | ||
S_IRUGO | |||
) |
module_param | ( | bulk_size | , |
charp | , | ||
S_IRUGO | |||
) |
module_param | ( | active_bulk_delay | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | nr_clients | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | loops | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | bulk_timeout | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | msg_timeout | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | client_network | , |
charp | , | ||
S_IRUGO | |||
) |
module_param | ( | client_portal | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | client_tmid | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | server_network | , |
charp | , | ||
S_IRUGO | |||
) |
module_param | ( | server_portal | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | server_tmid | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | server_min_recv_size | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | server_max_recv_msgs | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | send_msg_size | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | server_debug | , |
int | , | ||
S_IRUGO | |||
) |
module_param | ( | client_debug | , |
int | , | ||
S_IRUGO | |||
) |
MODULE_PARM_DESC | ( | server_only | , |
"run server only" | |||
) |
MODULE_PARM_DESC | ( | async_events | , |
"async event processing (old style)" | |||
) |
MODULE_PARM_DESC | ( | nr_bufs | , |
"total number of network buffers to allocate" | |||
) |
MODULE_PARM_DESC | ( | nr_recv_bufs | , |
"number of receive buffers (server only)" | |||
) |
MODULE_PARM_DESC | ( | active_bulk_delay | , |
"Delay before sending active receive" | |||
) |
MODULE_PARM_DESC | ( | nr_clients | , |
"number of client threads" | |||
) |
MODULE_PARM_DESC | ( | bulk_timeout | , |
"bulk timeout" | |||
) |
MODULE_PARM_DESC | ( | msg_timeout | , |
"message timeout" | |||
) |
MODULE_PARM_DESC | ( | client_network | , |
"client network interface (ip@intf)" | |||
) |
MODULE_PARM_DESC | ( | client_portal | , |
"client portal (optional)" | |||
) |
MODULE_PARM_DESC | ( | client_tmid | , |
"client base TMID (optional)" | |||
) |
MODULE_PARM_DESC | ( | server_network | , |
"server network interface (ip@intf)" | |||
) |
MODULE_PARM_DESC | ( | server_portal | , |
"server portal (optional)" | |||
) |
MODULE_PARM_DESC | ( | server_tmid | , |
"server TMID (optional)" | |||
) |
MODULE_PARM_DESC | ( | server_min_recv_size | , |
"server min receive size (optional)" | |||
) |
MODULE_PARM_DESC | ( | server_max_recv_msgs | , |
"server max receive msgs (optional)" | |||
) |
MODULE_PARM_DESC | ( | send_msg_size | , |
"client message size (optional)" | |||
) |
MODULE_PARM_DESC | ( | server_debug | , |
"server debug (optional)" | |||
) |
MODULE_PARM_DESC | ( | client_debug | , |
"client debug (optional)" | |||
) |
|
static |
Definition at line 135 of file m0lnetping_main.c.
|
static |
|
static |
Definition at line 71 of file m0lnetping_main.c.
|
static |
Definition at line 55 of file m0lnetping_main.c.
|
static |
Definition at line 67 of file m0lnetping_main.c.
|
static |
Definition at line 83 of file m0lnetping_main.c.
|
static |
Definition at line 131 of file m0lnetping_main.c.
|
static |
Definition at line 91 of file m0lnetping_main.c.
|
static |
Definition at line 47 of file m0lnetping_main.c.
|
static |
Definition at line 95 of file m0lnetping_main.c.
|
static |
Definition at line 176 of file m0lnetping_main.c.
|
static |
Definition at line 99 of file m0lnetping_main.c.
|
static |
Definition at line 79 of file m0lnetping_main.c.
const struct m0_net_xprt m0_net_lnet_xprt |
The LNet transport is used by specifying this data structure to the m0_net_domain_init() subroutine.
const struct m0_net_xprt m0_net_lnet_xprt |
The LNet transport is used by specifying this data structure to the m0_net_domain_init() subroutine.
|
static |
Definition at line 87 of file m0lnetping_main.c.
|
static |
Definition at line 59 of file m0lnetping_main.c.
|
static |
Definition at line 75 of file m0lnetping_main.c.
|
static |
Definition at line 63 of file m0lnetping_main.c.
|
static |
Definition at line 177 of file m0lnetping_main.c.
|
static |
Definition at line 39 of file m0lnetping_main.c.
|
static |
Definition at line 164 of file m0lnetping_main.c.
|
static |
Definition at line 169 of file m0lnetping_main.c.
|
static |
Definition at line 123 of file m0lnetping_main.c.
|
static |
Definition at line 127 of file m0lnetping_main.c.
|
static |
Definition at line 119 of file m0lnetping_main.c.
|
static |
Definition at line 115 of file m0lnetping_main.c.
|
static |
Definition at line 103 of file m0lnetping_main.c.
|
static |
Definition at line 51 of file m0lnetping_main.c.
|
static |
Definition at line 107 of file m0lnetping_main.c.
|
static |
Definition at line 175 of file m0lnetping_main.c.
|
static |
Definition at line 111 of file m0lnetping_main.c.
|
static |
Definition at line 43 of file m0lnetping_main.c.
|
static |
Definition at line 159 of file m0lnetping_main.c.