FD.io VPP  v16.12-rc0-289-g8fe8cc2
Vector Packet Processing
feature_registration.h
Go to the documentation of this file.
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_feature_registration_h
17 #define included_feature_registration_h
18 
19 /** feature registration object */
20 typedef struct _vnet_feature_registration
21 {
22  /** next registration in list of all registrations*/
23  struct _vnet_feature_registration *next;
24  /** Graph node name */
25  char *node_name;
26  /** Pointer to this feature index, filled in by vnet_feature_arc_init */
27  u32 *feature_index;
28  /** Constraints of the form "this feature runs before X" */
29  char **runs_before;
30  /** Constraints of the form "this feature runs after Y" */
31  char **runs_after;
33 
35 {
39 
40 /** Syntactic sugar, the c-compiler won't initialize registrations without it */
41 #define ORDER_CONSTRAINTS (char*[])
42 
44  vnet_config_main_t * vcm,
45  char **feature_start_nodes,
46  int num_feature_start_nodes,
48  first_reg, char ***feature_nodes);
49 
51  const char *pname,
53  u32 sw_if_index);
54 
55 #endif /* included_feature_registration_h */
56 
57 /*
58  * fd.io coding-style-patch-verification: ON
59  *
60  * Local Variables:
61  * eval: (c-set-style "gnu")
62  * End:
63  */
struct vnet_feature_config_main_t_ vnet_feature_config_main_t
static char * feature_start_nodes[]
Definition: init.c:64
clib_error_t * vnet_feature_arc_init(vlib_main_t *vm, vnet_config_main_t *vcm, char **feature_start_nodes, int num_feature_start_nodes, vnet_feature_registration_t *first_reg, char ***feature_nodes)
Initialize a feature graph arc.
void ip_interface_features_show(vlib_main_t *vm, const char *pname, vnet_feature_config_main_t *cm, u32 sw_if_index)
Display the set of IP features configured on a specific interface.
struct _vnet_feature_registration vnet_feature_registration_t
feature registration object
unsigned int u32
Definition: types.h:88