FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
gbp_itf.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 #ifndef __GBP_INTERFACE_H__
17 #define __GBP_INTERFACE_H__
18 
19 #include <vnet/l2/l2_input.h>
20 #include <vnet/l2/l2_output.h>
21 
23 extern void gbp_itf_unlock (index_t index);
24 
25 extern void gbp_itf_set_l2_input_feature (index_t gii,
26  index_t useri,
27  l2input_feat_masks_t feats);
28 extern void gbp_itf_set_l2_output_feature (index_t gii,
29  index_t useri,
30  l2output_feat_masks_t feats);
31 
32 extern u8 *format_gbp_itf (u8 * s, va_list * args);
33 
34 #endif
35 
36 /*
37  * fd.io coding-style-patch-verification: ON
38  *
39  * Local Variables:
40  * eval: (c-set-style "gnu")
41  * End:
42  */
void gbp_itf_set_l2_output_feature(index_t gii, index_t useri, l2output_feat_masks_t feats)
Definition: gbp_itf.c:146
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
Definition: dpo.h:41
unsigned char u8
Definition: types.h:56
void gbp_itf_set_l2_input_feature(index_t gii, index_t useri, l2input_feat_masks_t feats)
Definition: gbp_itf.c:102
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
void gbp_itf_unlock(index_t index)
Definition: gbp_itf.c:81
l2input_feat_masks_t
Definition: l2_input.h:138
l2output_feat_masks_t
Definition: l2_output.h:110
index_t gbp_itf_add_and_lock(u32 sw_if_index, u32 bd_index)
Definition: gbp_itf.c:57
u8 * format_gbp_itf(u8 *s, va_list *args)
Definition: gbp_itf.c:190