GBP: l3-out subnets
[vpp.git] / src / plugins / gbp / gbp_itf.h
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
22 extern index_t gbp_itf_add_and_lock (u32 sw_if_index, u32 bd_index);
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  */