FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
Main Page
Related Pages
Modules
Data Structures
Source
Files
Symbols
memclnt.api
Go to the documentation of this file.
1
/* Hey Emacs use -*- mode: C -*- */
2
/*
3
* Copyright (c) 2015 Cisco and/or its affiliates.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at:
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/*
18
* Create a client registration
19
*/
20
manual_print
21
define memclnt_create {
22
i32
ctx_quota
;
/* requested punt context quota */
23
u32
context
;
/* opaque value to be returned in the reply */
24
u64
input_queue
;
/* client's queue */
25
u8
name[64];
/* for show, find by name, whatever */
26
u32
api_versions[8];
/* client-server pairs use as desired */
27
};
28
29
define memclnt_create_reply {
30
i32
response
;
/* Non-negative = success */
31
u64
handle
;
/* handle by which vlib knows this client */
32
u32
index
;
/* index, used e.g. by API trace replay */
33
u32
context
;
/* opaque value from the create request */
34
u64
message_table
;
/* serialized message table in shmem */
35
};
36
37
/*
38
* Delete a client registration
39
*/
40
manual_print
41
define memclnt_delete {
42
u32
index
;
/* index, used e.g. by API trace replay */
43
u64
handle
;
/* handle by which vlib knows this client */
44
};
45
46
define memclnt_delete_reply {
47
i32
response
;
/* Non-negative = success */
48
u64
handle
;
/* in case the client wonders */
49
};
50
51
/*
52
* Client RX thread exit
53
*/
54
define rx_thread_exit {
55
u8
dummy
;
56
};
57
58
/*
59
* Client RX thread suspend
60
*/
61
define memclnt_rx_thread_suspend {
62
u8
dummy
;
63
};
64
65
/*
66
* Client read timeout
67
*/
68
define memclnt_read_timeout {
69
u8
dummy
;
70
};
71
72
/*
73
* RPC
74
*/
75
autoreply define rpc_call {
76
u32
client_index
;
77
u32
context
;
78
u64
function
;
79
u8
multicast
;
80
u8
need_barrier_sync
;
81
u8
send_reply
;
82
u8
data[0];
83
};
84
85
/*
86
* Lookup message-ID base by name
87
*/
88
define get_first_msg_id {
89
u32
client_index
;
90
u32
context
;
91
u8
name[64];
92
};
93
94
define get_first_msg_id_reply {
95
u32
client_index
;
96
u32
context
;
97
i32
retval
;
98
u16
first_msg_id
;
99
};
100
101
/*
102
* Trace the plugin message-id allocator
103
* so we stand a chance of dealing with different sets of plugins
104
* at api trace replay time
105
*/
106
107
manual_print define trace_plugin_msg_ids
108
{
109
u32
client_index
;
110
u32
context
;
111
u8
plugin_name[128];
112
u16
first_msg_id
;
113
u16
last_msg_id
;
114
};
vl_api_memclnt_create_reply_t::message_table
u64 message_table
Definition:
memclnt.api:34
vl_api_memclnt_read_timeout_t::dummy
u8 dummy
Definition:
memclnt.api:69
vl_api_memclnt_create_t::input_queue
u64 input_queue
Definition:
memclnt.api:24
vl_api_get_first_msg_id_reply_t::client_index
u32 client_index
Definition:
memclnt.api:95
vl_api_get_first_msg_id_t::context
u32 context
Definition:
memclnt.api:90
vl_api_trace_plugin_msg_ids_t::context
u32 context
Definition:
memclnt.api:110
vl_api_memclnt_create_reply_t::handle
u64 handle
Definition:
memclnt.api:31
i32
int i32
Definition:
types.h:81
vl_api_memclnt_create_reply_t::response
i32 response
Definition:
memclnt.api:30
u64
unsigned long u64
Definition:
types.h:89
vl_api_rpc_call_t::client_index
u32 client_index
Definition:
memclnt.api:76
vl_api_memclnt_delete_t::index
u32 index
Definition:
memclnt.api:42
vl_api_get_first_msg_id_reply_t::retval
i32 retval
Definition:
memclnt.api:97
vl_api_rpc_call_t::context
u32 context
Definition:
memclnt.api:77
vl_api_trace_plugin_msg_ids_t::last_msg_id
u16 last_msg_id
Definition:
memclnt.api:113
vl_api_memclnt_create_t::ctx_quota
i32 ctx_quota
Definition:
memclnt.api:22
vl_api_trace_plugin_msg_ids_t::client_index
u32 client_index
Definition:
memclnt.api:109
vl_api_get_first_msg_id_reply_t::first_msg_id
u16 first_msg_id
Definition:
memclnt.api:98
vl_api_rpc_call_t::send_reply
u8 send_reply
Definition:
memclnt.api:81
vl_api_trace_plugin_msg_ids_t::first_msg_id
u16 first_msg_id
Definition:
memclnt.api:112
u32
unsigned int u32
Definition:
types.h:88
vl_api_rpc_call_t::need_barrier_sync
u8 need_barrier_sync
Definition:
memclnt.api:80
vl_api_get_first_msg_id_reply_t::context
u32 context
Definition:
memclnt.api:96
vl_api_rx_thread_exit_t::dummy
u8 dummy
Definition:
memclnt.api:55
vl_api_memclnt_create_reply_t::context
u32 context
Definition:
memclnt.api:33
vl_api_memclnt_delete_t::handle
u64 handle
Definition:
memclnt.api:43
u16
unsigned short u16
Definition:
types.h:57
u8
unsigned char u8
Definition:
types.h:56
vl_api_memclnt_delete_reply_t::handle
u64 handle
Definition:
memclnt.api:48
vl_api_get_first_msg_id_t::client_index
u32 client_index
Definition:
memclnt.api:89
vl_api_memclnt_create_reply_t::index
u32 index
Definition:
memclnt.api:32
vl_api_memclnt_create_t::context
u32 context
Definition:
memclnt.api:23
vl_api_memclnt_rx_thread_suspend_t::dummy
u8 dummy
Definition:
memclnt.api:62
vl_api_memclnt_delete_reply_t::response
i32 response
Definition:
memclnt.api:47
vl_api_rpc_call_t::multicast
u8 multicast
Definition:
memclnt.api:79
src
vlibmemory
memclnt.api
Generated on Tue Nov 14 2017 00:29:54 for FD.io VPP by
1.8.11