FD.io VPP
v18.04-17-g3a0d853
Vector Packet Processing
Main Page
Related Pages
Modules
Namespaces
Data Structures
Source
Files
Symbols
kp.api
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Intel and/or its affiliates.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at:
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
option
version
=
"1.0.0"
;
17
18
/** \brief Configure Kube-proxy global parameters
19
@param client_index - opaque cookie to identify the sender
20
@param context - sender context, to match reply w/ request
21
@param sticky_buckets_per_core - Number of buckets *per worker thread* in the
22
established flow table (must be power of 2).
23
@param flow_timeout - Time in seconds after which, if no packet is received
24
for a given flow, the flow is removed from the established flow table.
25
*/
26
autoreply define
kp_conf
27
{
28
u32
client_index
;
29
u32
context
;
30
u32
sticky_buckets_per_core
;
31
u32
flow_timeout
;
32
};
33
34
/** \brief Add a virtual address (or prefix)
35
@param client_index - opaque cookie to identify the sender
36
@param context - sender context, to match reply w/ request
37
@param ip_prefix - IP address (IPv4 in lower order 32 bits).
38
@param prefix_length - IP prefix length (96 + 'IPv4 prefix length' for IPv4).
39
@param is_ipv6 - Is IPv6 addresss.
40
@param port - service port;
41
@param target_port - Pod's port corresponding to specific service.
42
@param node_port - Node's port.
43
@param is_nat4 - DNAT is NAT44 (NAT64 otherwise).
44
@param new_flows_table_length - Size of the new connections flow table used
45
for this VIP (must be power of 2).
46
@param is_del - The VIP should be removed.
47
*/
48
autoreply define kp_add_del_vip {
49
u32
client_index
;
50
u32
context
;
51
u8
ip_prefix[16];
52
u8
prefix_length
;
53
u8
is_ipv6
;
54
u16
port
;
55
u16
target_port
;
56
u16
node_port
;
57
u8
is_nat4
;
58
u32
new_flows_table_length
;
59
u8
is_del
;
60
};
61
62
/** \brief Add a pod for a given VIP
63
@param client_index - opaque cookie to identify the sender
64
@param context - sender context, to match reply w/ request
65
@param vip_ip_prefix - VIP IP address (IPv4 in lower order 32 bits).
66
@param vip_ip_prefix - VIP IP prefix length (96 + 'IPv4 prefix length' for IPv4).
67
@param vip_is_ipv6 - VIP is IPv6 addresss.
68
@param pod_address - The pod's IP address (IPv4 in lower order 32 bits).
69
@param pod_is_ipv6 - Pod is IPv6 addresss.
70
@param is_del - The Pod should be removed.
71
*/
72
autoreply define kp_add_del_pod {
73
u32
client_index
;
74
u32
context
;
75
u8
vip_ip_prefix[16];
76
u8
vip_prefix_length
;
77
u8
vip_is_ipv6
;
78
u8
pod_address[16];
79
u8
pod_is_ipv6
;
80
u8
is_del
;
81
};
vl_api_kp_add_del_vip_t::target_port
u16 target_port
Definition:
kp.api:55
vl_api_kp_add_del_vip_t::is_del
u8 is_del
Definition:
kp.api:59
vl_api_kp_conf_t::sticky_buckets_per_core
u32 sticky_buckets_per_core
Definition:
kp.api:30
vl_api_kp_add_del_vip_t::client_index
u32 client_index
Definition:
kp.api:49
vl_api_kp_add_del_vip_t::is_ipv6
u8 is_ipv6
Definition:
kp.api:53
vl_api_kp_add_del_pod_t::vip_prefix_length
u8 vip_prefix_length
Definition:
kp.api:76
vl_api_kp_add_del_pod_t::pod_is_ipv6
u8 pod_is_ipv6
Definition:
kp.api:79
vl_api_kp_add_del_vip_t::new_flows_table_length
u32 new_flows_table_length
Definition:
kp.api:58
vl_api_kp_conf_t::flow_timeout
u32 flow_timeout
Definition:
kp.api:31
vl_api_kp_add_del_pod_t::is_del
u8 is_del
Definition:
kp.api:80
vl_api_kp_add_del_vip_t::context
u32 context
Definition:
kp.api:50
vl_api_kp_conf_t::context
u32 context
Definition:
kp.api:29
vl_api_kp_add_del_pod_t::vip_is_ipv6
u8 vip_is_ipv6
Definition:
kp.api:77
vl_api_kp_add_del_pod_t::client_index
u32 client_index
Definition:
kp.api:73
vl_api_kp_conf_t::client_index
u32 client_index
Definition:
kp.api:28
u32
unsigned int u32
Definition:
types.h:88
vl_api_kp_add_del_vip_t::node_port
u16 node_port
Definition:
kp.api:56
vl_api_kp_add_del_vip_t::port
u16 port
Definition:
kp.api:54
vl_api_kp_add_del_vip_t::prefix_length
u8 prefix_length
Definition:
kp.api:52
u16
unsigned short u16
Definition:
types.h:57
vl_api_kp_add_del_vip_t::is_nat4
u8 is_nat4
Definition:
kp.api:57
u8
unsigned char u8
Definition:
types.h:56
vl_api_kp_add_del_pod_t::context
u32 context
Definition:
kp.api:74
version
option version
Definition:
kp.api:16
kp_conf
int kp_conf(u32 per_cpu_sticky_buckets, u32 flow_timeout)
Fix global kube-proxy parameters.
Definition:
kp.c:421
src
plugins
kubeproxy
kp.api
Generated on Mon Oct 1 2018 08:02:01 for FD.io VPP by
1.8.11