FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
oddbuf.api
Go to the documentation of this file.
1
/*
2
* oddbuf.api - awkward chained buffer geometry test tool
3
*
4
* Copyright (c) 2019 by Cisco and/or its affiliates.
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
18
/**
19
* @file oddbuf.api
20
* @brief VPP control-plane API messages.
21
*
22
* This file defines VPP control-plane binary API messages which are generally
23
* called through a shared memory interface.
24
*/
25
26
/* Version and type recitations */
27
28
option
version
=
"0.1.0"
;
29
import
"vnet/interface_types.api"
;
30
31
32
/** @brief API to enable / disable oddbuf on an interface
33
@param client_index - opaque cookie to identify the sender
34
@param context - sender context, to match reply w/ request
35
@param enable_disable - 1 to enable, 0 to disable the feature
36
@param sw_if_index - interface handle
37
*/
38
39
autoreply define
oddbuf_enable_disable
{
40
/* Client identifier, set from api_main.my_client_index */
41
u32
client_index
;
42
43
/* Arbitrary context, so client can match reply to request */
44
u32
context
;
45
46
/* Enable / disable the feature */
47
bool
enable_disable
;
48
49
/* Interface handle */
50
vl_api_interface_index_t
sw_if_index
;
51
option vat_help =
"<intfc> [disable]"
;
52
};
vl_api_oddbuf_enable_disable_t::context
u32 context
Definition:
oddbuf.api:44
vl_api_oddbuf_enable_disable_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition:
oddbuf.api:50
vl_api_oddbuf_enable_disable_t::vat_help
option vat_help
Definition:
oddbuf.api:51
vl_api_oddbuf_enable_disable_t::client_index
u32 client_index
Definition:
oddbuf.api:41
version
option version
Definition:
oddbuf.api:28
vl_api_oddbuf_enable_disable_t::enable_disable
bool enable_disable
Definition:
oddbuf.api:47
u32
unsigned int u32
Definition:
types.h:88
vl_api_oddbuf_enable_disable_t
API to enable / disable oddbuf on an interface.
Definition:
oddbuf.api:39
oddbuf_enable_disable
int oddbuf_enable_disable(oddbuf_main_t *omp, u32 sw_if_index, int enable_disable)
Definition:
oddbuf.c:39
src
plugins
oddbuf
oddbuf.api
Generated on Sat Jan 8 2022 10:35:48 for FD.io VPP by
1.8.17