2 * gbp.h : Group Based Policy
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:
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef __GBP_CLASSIFY_H__
19 #define __GBP_CLASSIFY_H__
21 #include <plugins/gbp/gbp.h>
23 typedef enum gbp_src_classify_type_t_
25 GBP_SRC_CLASSIFY_NULL,
26 GBP_SRC_CLASSIFY_PORT,
28 } gbp_src_classify_type_t;
30 #define GBP_SRC_N_CLASSIFY (GBP_SRC_CLASSIFY_LPM + 1)
33 * Grouping of global data for the GBP source EPG classification feature
35 typedef struct gbp_src_classify_main_t_
38 * Next nodes for L2 output features
40 u32 l2_input_feat_next[GBP_SRC_N_CLASSIFY][32];
41 } gbp_src_classify_main_t;
43 extern gbp_src_classify_main_t gbp_src_classify_main;
48 * fd.io coding-style-patch-verification: ON
51 * eval: (c-set-style "gnu")