FD.io VPP  v19.04.1-1-ge4a0f9f
Vector Packet Processing
gbp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Cisco 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 /**
17  * Group Base Policy (GBP) defines:
18  * - endpoints: typically a VM or container that is connected to the
19  * virtual switch/router (i.e. to VPP)
20  * - endpoint-group: (EPG) a collection of endpoints
21  * - policy: rules determining which traffic can pass between EPGs a.k.a
22  * a 'contract'
23  *
24  * Here, policy is implemented via an ACL.
25  * EPG classification for transit packets is determined by:
26  * - source EPG: from the packet's input interface
27  * - destination EPG: from the packet's destination IP address.
28  *
29  */
30 
31 #ifndef __GBP_H__
32 #define __GBP_H__
33 
34 #include <plugins/acl/exports.h>
35 
36 #include <plugins/gbp/gbp_types.h>
40 #include <plugins/gbp/gbp_subnet.h>
41 #include <plugins/gbp/gbp_recirc.h>
42 
43 typedef struct
44 {
47 } gbp_main_t;
48 
49 extern gbp_main_t gbp_main;
50 
51 /**
52  * Grouping of global data for the GBP source EPG classification feature
53  */
54 typedef struct gbp_policy_main_t_
55 {
56  /**
57  * Next nodes for L2 output features
58  */
61 
63 
64 #endif
65 
66 /*
67  * fd.io coding-style-patch-verification: ON
68  *
69  * Local Variables:
70  * eval: (c-set-style "gnu")
71  * End:
72  */
u32 gbp_acl_user_id
Definition: gbp.h:45
u32 l2_output_feat_next[2][32]
Next nodes for L2 output features.
Definition: gbp.h:59
gbp_policy_main_t gbp_policy_main
Definition: gbp_policy.c:19
unsigned int u32
Definition: types.h:88
gbp_main_t gbp_main
Definition: gbp_api.c:87
struct gbp_policy_main_t_ gbp_policy_main_t
Grouping of global data for the GBP source EPG classification feature.
acl_plugin_methods_t acl_plugin
Definition: gbp.h:46
Group Base Policy (GBP) defines:
Definition: gbp.h:43
Grouping of global data for the GBP source EPG classification feature.
Definition: gbp.h:54