Motr
M0
lnet_xo.h
Go to the documentation of this file.
1
/* -*- C -*- */
2
/*
3
* Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
* For any questions about this software or licensing,
18
* please email opensource@seagate.com or cortx-questions@seagate.com.
19
*
20
*/
21
22
23
#pragma once
24
25
#ifndef __MOTR_NET_LNET_XO_H__
26
#define __MOTR_NET_LNET_XO_H__
27
28
#include "
net/lnet/lnet_core.h
"
29
#include "
lib/thread.h
"
30
#include "
lib/bitmap.h
"
/* m0_bitmap */
31
38
struct
nlx_xo_buffer
;
39
struct
nlx_xo_domain
;
40
struct
nlx_xo_ep
;
41
struct
nlx_xo_transfer_mc
;
42
43
enum
{
44
M0_NET_LNET_EVT_SHORT_WAIT_SECS
= 1,
45
M0_NET_LNET_EVT_LONG_WAIT_SECS
= 10,
46
M0_NET_LNET_BUF_TIMEOUT_TICK_SECS
= 15,
47
};
48
52
struct
nlx_xo_ep
{
54
uint64_t
xe_magic
;
55
57
struct
m0_net_end_point
xe_ep
;
58
60
struct
nlx_core_ep_addr
xe_core
;
61
66
char
xe_addr
[
M0_NET_LNET_XEP_ADDR_LEN
];
67
};
68
72
struct
nlx_xo_domain
{
74
struct
m0_net_domain
*
xd_dom
;
75
77
struct
nlx_core_domain
xd_core
;
78
79
unsigned
_debug_
;
80
};
81
85
struct
nlx_xo_transfer_mc
{
87
struct
m0_net_transfer_mc
*
xtm_tm
;
88
90
struct
m0_bitmap
xtm_processors
;
91
93
struct
m0_thread
xtm_ev_thread
;
94
98
struct
m0_cond
xtm_ev_cond
;
99
101
struct
m0_chan
*
xtm_ev_chan
;
102
104
struct
nlx_core_transfer_mc
xtm_core
;
105
106
unsigned
_debug_
;
107
};
108
112
struct
nlx_xo_buffer
{
114
struct
m0_net_buffer
*
xb_nb
;
115
117
struct
nlx_core_buffer
xb_core
;
118
};
119
124
#endif
/* __MOTR_NET_LNET_XO_H__ */
125
126
/*
127
* Local variables:
128
* c-indentation-style: "K&R"
129
* c-basic-offset: 8
130
* tab-width: 8
131
* fill-column: 79
132
* scroll-step: 1
133
* End:
134
*/
m0_cond
Definition:
cond.h:99
nlx_xo_ep
Definition:
lnet_xo.h:52
nlx_xo_ep::xe_ep
struct m0_net_end_point xe_ep
Definition:
lnet_xo.h:57
m0_net_buffer
Definition:
net.h:1316
nlx_xo_transfer_mc::xtm_processors
struct m0_bitmap xtm_processors
Definition:
lnet_xo.h:90
M0_NET_LNET_XEP_ADDR_LEN
Definition:
lnet.h:124
nlx_xo_ep::xe_magic
uint64_t xe_magic
Definition:
lnet_xo.h:54
nlx_xo_ep::xe_addr
char xe_addr[M0_NET_LNET_XEP_ADDR_LEN]
Definition:
lnet_xo.h:66
nlx_core_transfer_mc
Definition:
lnet_core_types.h:228
m0_net_transfer_mc
Definition:
net.h:811
nlx_xo_domain::_debug_
unsigned _debug_
Definition:
lnet_xo.h:79
M0_NET_LNET_EVT_SHORT_WAIT_SECS
Definition:
lnet_xo.h:44
nlx_core_domain
Definition:
lnet_core_types.h:218
thread.h
nlx_xo_domain
Definition:
lnet_xo.h:72
nlx_xo_domain::xd_dom
struct m0_net_domain * xd_dom
Definition:
lnet_xo.h:74
m0_net_domain
Definition:
net.h:376
nlx_xo_transfer_mc::xtm_ev_chan
struct m0_chan * xtm_ev_chan
Definition:
lnet_xo.h:101
nlx_xo_domain::xd_core
struct nlx_core_domain xd_core
Definition:
lnet_xo.h:77
nlx_xo_transfer_mc::_debug_
unsigned _debug_
Definition:
lnet_xo.h:106
nlx_xo_buffer
Definition:
lnet_xo.h:112
nlx_xo_buffer::xb_core
struct nlx_core_buffer xb_core
Definition:
lnet_xo.h:117
m0_thread
Definition:
thread.h:110
m0_chan
Definition:
chan.h:229
nlx_xo_transfer_mc::xtm_ev_cond
struct m0_cond xtm_ev_cond
Definition:
lnet_xo.h:98
nlx_core_buffer
Definition:
lnet_core_types.h:261
nlx_xo_transfer_mc::xtm_ev_thread
struct m0_thread xtm_ev_thread
Definition:
lnet_xo.h:93
M0_NET_LNET_EVT_LONG_WAIT_SECS
Definition:
lnet_xo.h:45
bitmap.h
lnet_core.h
m0_bitmap
Definition:
bitmap.h:42
nlx_xo_transfer_mc
Definition:
lnet_xo.h:85
nlx_xo_ep::xe_core
struct nlx_core_ep_addr xe_core
Definition:
lnet_xo.h:60
nlx_xo_buffer::xb_nb
struct m0_net_buffer * xb_nb
Definition:
lnet_xo.h:114
M0_NET_LNET_BUF_TIMEOUT_TICK_SECS
Definition:
lnet_xo.h:46
nlx_xo_transfer_mc::xtm_tm
struct m0_net_transfer_mc * xtm_tm
Definition:
lnet_xo.h:87
m0_net_end_point
Definition:
net.h:487
nlx_core_ep_addr
Definition:
lnet_core_types.h:56
nlx_xo_transfer_mc::xtm_core
struct nlx_core_transfer_mc xtm_core
Definition:
lnet_xo.h:104
net
lnet
lnet_xo.h
Generated on Thu Apr 14 2022 14:02:58 for Motr by
1.8.14