FD.io VPP
v17.01.1-3-gc6833f8
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
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
>
21
#include <
vnet/classify/vnet_classify.h
>
22
23
typedef
enum
{
24
FLOW_CLASSIFY_TABLE_IP4
,
25
FLOW_CLASSIFY_TABLE_IP6
,
26
FLOW_CLASSIFY_N_TABLES
,
27
}
flow_classify_table_id_t
;
28
29
typedef
enum
{
30
FLOW_CLASSIFY_NEXT_INDEX_DROP
,
31
FLOW_CLASSIFY_NEXT_INDEX_N_NEXT
,
32
}
flow_classify_next_index_t
;
33
34
typedef
struct
{
35
/* Classifier table vectors */
36
u32
* classify_table_index_by_sw_if_index [
FLOW_CLASSIFY_N_TABLES
];
37
38
/* Convenience variables */
39
vlib_main_t
*
vlib_main
;
40
vnet_main_t
*
vnet_main
;
41
vnet_classify_main_t
*
vnet_classify_main
;
42
vnet_config_main_t
* vnet_config_main [
FLOW_CLASSIFY_N_TABLES
];
43
}
flow_classify_main_t
;
44
45
flow_classify_main_t
flow_classify_main
;
46
47
int
vnet_set_flow_classify_intfc
(
vlib_main_t
* vm,
u32
sw_if_index,
48
u32
ip4_table_index,
u32
ip6_table_index,
49
u32
is_add);
50
51
#endif
/* __included_vnet_flow_classify_h__ */
vnet_set_flow_classify_intfc
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:44
flow_classify_next_index_t
flow_classify_next_index_t
Definition:
flow_classify.h:29
FLOW_CLASSIFY_N_TABLES
Definition:
flow_classify.h:26
flow_classify_table_id_t
flow_classify_table_id_t
Definition:
flow_classify.h:23
FLOW_CLASSIFY_NEXT_INDEX_DROP
Definition:
flow_classify.h:30
flow_classify_main_t::vlib_main
vlib_main_t * vlib_main
Definition:
flow_classify.h:39
FLOW_CLASSIFY_NEXT_INDEX_N_NEXT
Definition:
flow_classify.h:31
FLOW_CLASSIFY_TABLE_IP6
Definition:
flow_classify.h:25
flow_classify_main
flow_classify_main_t flow_classify_main
Definition:
flow_classify.h:45
vnet_config_main_t
Definition:
config.h:86
flow_classify_main_t
Definition:
flow_classify.h:34
flow_classify_main_t::vnet_main
vnet_main_t * vnet_main
Definition:
flow_classify.h:40
vnet.h
vnet_classify.h
vlib.h
vnet_classify_main_t
struct _vnet_classify_main vnet_classify_main_t
Definition:
vnet_classify.h:69
vnet_main_t
Definition:
vnet.h:52
u32
unsigned int u32
Definition:
types.h:88
FLOW_CLASSIFY_TABLE_IP4
Definition:
flow_classify.h:24
flow_classify_main_t::vnet_classify_main
vnet_classify_main_t * vnet_classify_main
Definition:
flow_classify.h:41
vlib_main_t
Definition:
main.h:59
vnet
vnet
classify
flow_classify.h
Generated on Mon May 15 2017 22:01:53 for FD.io VPP by
1.8.11