2 * Copyright (c) 2015 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 __included_vnet_in_out_feat_arc_h__
17 #define __included_vnet_in_out_feat_arc_h__
19 #include <vlib/vlib.h>
20 #include <vnet/vnet.h>
21 #include <vnet/classify/vnet_classify.h>
25 FEAT_ARC_NEXT_INDEX_DROP,
26 FEAT_ARC_NEXT_INDEX_N_NEXT,
27 } in_out_feat_arc_next_index_t;
31 IN_OUT_FEAT_ARC_TABLE_IP4,
32 IN_OUT_FEAT_ARC_TABLE_IP6,
33 IN_OUT_FEAT_ARC_TABLE_L2,
34 IN_OUT_FEAT_ARC_N_TABLES,
35 } in_out_feat_arc_table_id_t;
39 IN_OUT_FEAT_ARC_INPUT_TABLE_GROUP,
40 IN_OUT_FEAT_ARC_OUTPUT_TABLE_GROUP,
41 IN_OUT_FEAT_ARC_N_TABLE_GROUPS
42 } in_out_feat_arc_table_group_id_t;
46 /* convenience variables */
47 vlib_main_t *vlib_main;
48 vnet_main_t *vnet_main;
49 vnet_classify_main_t *vnet_classify_main;
52 vnet_config_main[IN_OUT_FEAT_ARC_N_TABLE_GROUPS]
53 [IN_OUT_FEAT_ARC_N_TABLES];
54 } in_out_feat_arc_main_t;
56 int vnet_l2_feature_enable_disable (const char *arc_name,
57 const char *node_name, u32 sw_if_index,
58 int enable_disable, void *feature_config,
59 u32 n_feature_config_bytes);
61 extern vlib_node_registration_t l2_in_feat_arc_end_node;
62 extern vlib_node_registration_t l2_out_feat_arc_end_node;
63 extern vlib_node_registration_t l2_out_feat_arc_node;
64 extern vlib_node_registration_t l2_in_feat_arc_node;
66 #endif /* __included_vnet_in_out_feat_arc_h__ */
69 * fd.io coding-style-patch-verification: ON
72 * eval: (c-set-style "gnu")