GBP: fix UT after multi-arch change
[vpp.git] / src / plugins / gbp / gbp_classify.h
1 /*
2  * gbp.h : Group Based Policy
3  *
4  * Copyright (c) 2018 Cisco and/or its affiliates.
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #ifndef __GBP_CLASSIFY_H__
19 #define __GBP_CLASSIFY_H__
20
21 #include <plugins/gbp/gbp.h>
22
23 typedef enum gbp_src_classify_type_t_
24 {
25   GBP_SRC_CLASSIFY_NULL,
26   GBP_SRC_CLASSIFY_PORT,
27   GBP_SRC_CLASSIFY_LPM,
28 } gbp_src_classify_type_t;
29
30 #define GBP_SRC_N_CLASSIFY (GBP_SRC_CLASSIFY_LPM + 1)
31
32 /**
33  * Grouping of global data for the GBP source EPG classification feature
34  */
35 typedef struct gbp_src_classify_main_t_
36 {
37   /**
38    * Next nodes for L2 output features
39    */
40   u32 l2_input_feat_next[GBP_SRC_N_CLASSIFY][32];
41 } gbp_src_classify_main_t;
42
43 extern gbp_src_classify_main_t gbp_src_classify_main;
44
45 #endif
46
47 /*
48  * fd.io coding-style-patch-verification: ON
49  *
50  * Local Variables:
51  * eval: (c-set-style "gnu")
52  * End:
53  */