diff options
author | Neale Ranns <nranns@cisco.com> | 2019-03-04 01:37:43 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-03-04 01:37:43 -0800 |
commit | f90bcee0944064fbe99571b772eef4baba32152e (patch) | |
tree | fc8e3f7b1c46745ff3915aa827ad564ae6648f56 /src/plugins/gbp/gbp_learn.h | |
parent | 6fa5dac5fe9699c5eeed383c5bcb3f08507e1548 (diff) |
GBP: fix UT after multi-arch change
Change-Id: I09c400d71b3c973341fd79fe9b6709592d96822c
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_learn.h')
-rw-r--r-- | src/plugins/gbp/gbp_learn.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/plugins/gbp/gbp_learn.h b/src/plugins/gbp/gbp_learn.h index 836daf80886..c40196ef259 100644 --- a/src/plugins/gbp/gbp_learn.h +++ b/src/plugins/gbp/gbp_learn.h @@ -18,12 +18,41 @@ #include <plugins/gbp/gbp.h> +/** + * The maximum learning rate per-hashed EP + */ +#define GBP_ENDPOINT_HASH_LEARN_RATE (1e-2) + typedef enum gbp_learn_mode_t_ { GBP_LEARN_MODE_L2, GBP_LEARN_MODE_L3, } gbb_learn_mode_t; +/** + * Grouping of global data for the GBP source EPG classification feature + */ +typedef struct gbp_learn_main_t_ +{ + /** + * Next nodes for L2 output features + */ + u32 gl_l2_input_feat_next[32]; + + /** + * logger - VLIB log class + */ + vlib_log_class_t gl_logger; + + /** + * throttles for the DP leanring + */ + throttle_t gl_l2_throttle; + throttle_t gl_l3_throttle; +} gbp_learn_main_t; + +extern gbp_learn_main_t gbp_learn_main; + extern void gbp_learn_enable (u32 sw_if_index, gbb_learn_mode_t mode); extern void gbp_learn_disable (u32 sw_if_index, gbb_learn_mode_t mode); |