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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __GBP_INTERFACE_H__
17 #define __GBP_INTERFACE_H__
19 #include <vnet/l2/l2_input.h>
20 #include <vnet/l2/l2_output.h>
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);
25 extern void gbp_itf_set_l2_input_feature (index_t gii,
27 l2input_feat_masks_t feats);
28 extern void gbp_itf_set_l2_output_feature (index_t gii,
30 l2output_feat_masks_t feats);
32 extern u8 *format_gbp_itf (u8 * s, va_list * args);
37 * fd.io coding-style-patch-verification: ON
40 * eval: (c-set-style "gnu")