diff options
author | Pierre Pfister <ppfister@cisco.com> | 2016-07-20 08:39:38 +0100 |
---|---|---|
committer | Pierre Pfister <ppfister@cisco.com> | 2016-07-20 08:39:38 +0100 |
commit | 59253a49895167f19f276a5dca03af9b9281e688 (patch) | |
tree | 9faef8f32fc92fba45fe64a030b6a97cb161ffa7 /plugins/ila-plugin/ila/ila.h | |
parent | c61080e76c9771de6f2beaba23fabe3aa4764a9b (diff) |
ILA: Add direction option to disable ila2sir or sir2ila
In a ILA router use case as described by the draft, it is proposed
to disable ILA to SIR translation and do SIR to ILA only.
Change-Id: I8d0980bb75c8d925c1d1aa4563030919dd220620
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'plugins/ila-plugin/ila/ila.h')
-rw-r--r-- | plugins/ila-plugin/ila/ila.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/ila-plugin/ila/ila.h b/plugins/ila-plugin/ila/ila.h index c2650c1d2d5..b800fdd7b7a 100644 --- a/plugins/ila-plugin/ila/ila.h +++ b/plugins/ila-plugin/ila/ila.h @@ -47,12 +47,24 @@ typedef enum { ILA_CSUM_N_TYPES } ila_csum_mode_t; +#define ila_foreach_direction \ +_(BIDIR, 0, "bidir") \ +_(SIR2ILA, 1, "sir2ila") \ +_(ILA2SIR, 2, "ila2sir") + +typedef enum { +#define _(i,n,s) ILA_DIR_##i = n, + ila_foreach_direction +#undef _ +} ila_direction_t; + typedef struct { ila_type_t type; ip6_address_t sir_address; ip6_address_t ila_address; u32 ila_adj_index; ila_csum_mode_t csum_mode; + ila_direction_t dir; } ila_entry_t; typedef struct { @@ -79,6 +91,7 @@ typedef struct { u32 vnid; u32 local_adj_index; ila_csum_mode_t csum_mode; + ila_direction_t dir; u8 is_del; } ila_add_del_entry_args_t; |