diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-01-13 16:34:03 -0300 | 
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-04-14 13:45:39 -0300 | 
| commit | f2a0ba3a507d08201c0f5b499e65d5c019c98124 (patch) | |
| tree | 803c3b9ddc7f3170500e343eee0148caae337a22 /lib/nexthop.h | |
| parent | 770a8d284ccdc25bdfd574eb84c4735ad400b1f4 (diff) | |
zebra: data plane FPM add support RMAC VNI
Store VNI information in the data plane context so we can use it to
build the FPM netlink update with that information later.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index c4e88dd844..9b71262589 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -25,6 +25,7 @@  #include "prefix.h"  #include "mpls.h" +#include "vxlan.h"  #ifdef __cplusplus  extern "C" { @@ -60,6 +61,10 @@ enum blackhole_type {  		? (type)                                                       \  		: ((type) | 1) +enum nh_encap_type { +	NET_VXLAN = 100, /* value copied from FPM_NH_ENCAP_VXLAN. */ +}; +  /* Nexthop structure. */  struct nexthop {  	struct nexthop *next; @@ -123,6 +128,12 @@ struct nexthop {  	 * only meaningful if the HAS_BACKUP flag is set.  	 */  	uint8_t backup_idx; + +	/* Encapsulation information. */ +	enum nh_encap_type nh_encap_type; +	union { +		vni_t vni; +	} nh_encap;  };  /* Backup index value is limited */  | 
