Dynamically compute ip feature subgraph order
[vpp.git] / vnet / vnet / ip / ip_feature_registration.h
1 /*
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:
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 included_ip_feature_registration_h
17 #define included_ip_feature_registration_h
18
19 typedef struct _vnet_ip_feature_registration {
20   struct _vnet_ip_feature_registration * next;
21   char * node_name;
22   u32 * feature_index;
23   char * runs_before[];
24 } vnet_ip_feature_registration_t;
25
26 clib_error_t *
27 ip_feature_init_cast (vlib_main_t * vm,
28                       ip_config_main_t * cm,
29                       vnet_config_main_t * vcm,
30                       char **feature_start_nodes,
31                       int num_feature_start_nodes,
32                       vnet_cast_t cast,
33                       int is_ip4);
34
35 #endif /* included_ip_feature_registration_h */