FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
flow_classify.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 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_vnet_flow_classify_h__
17 #define __included_vnet_flow_classify_h__
18 
19 #include <vlib/vlib.h>
20 #include <vnet/vnet.h>
22 
23 typedef enum
24 {
29 
30 typedef enum
31 {
35 
36 typedef struct
37 {
38  /* Classifier table vectors */
39  u32 *classify_table_index_by_sw_if_index[FLOW_CLASSIFY_N_TABLES];
40 
41  /* Convenience variables */
47 
49 
51  u32 ip4_table_index, u32 ip6_table_index,
52  u32 is_add);
53 
54 #endif /* __included_vnet_flow_classify_h__ */
55 
56 /*
57  * fd.io coding-style-patch-verification: ON
58  *
59  * Local Variables:
60  * eval: (c-set-style "gnu")
61  * End:
62  */
int vnet_set_flow_classify_intfc(vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 is_add)
Definition: flow_classify.c:47
flow_classify_next_index_t
Definition: flow_classify.h:30
flow_classify_table_id_t
Definition: flow_classify.h:23
vlib_main_t * vlib_main
Definition: flow_classify.h:42
flow_classify_main_t flow_classify_main
Definition: flow_classify.c:17
vnet_main_t * vnet_main
Definition: flow_classify.h:43
vlib_main_t * vm
Definition: buffer.c:283
struct _vnet_classify_main vnet_classify_main_t
Definition: vnet_classify.h:73
unsigned int u32
Definition: types.h:88
vnet_classify_main_t * vnet_classify_main
Definition: flow_classify.h:44