From b260197de92914bcabe2c560ce7f05127d242061 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 1 Apr 2021 12:00:04 -0400 Subject: zebra: install neigh entries on SVD Install neigh entries always on SVD if it exists in zebra. If zebra is using a Single Vxlan Device, we must duplicate the install of our neigh entries to it so that vxlan communication can also work across it in the downstream VNI case. Signed-off-by: Stephen Worley --- zebra/zebra_vxlan_private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zebra/zebra_vxlan_private.h') diff --git a/zebra/zebra_vxlan_private.h b/zebra/zebra_vxlan_private.h index 4296640f7..7b8cdef40 100644 --- a/zebra/zebra_vxlan_private.h +++ b/zebra/zebra_vxlan_private.h @@ -76,6 +76,10 @@ struct zebra_l3vni { struct hash *nh_table; }; +#define IS_ZL3VNI_SVD_BACKED(zl3vni) \ + (zl3vni->vxlan_if && zl3vni->vxlan_if->info && \ + IS_ZEBRA_VXLAN_IF_SVD((struct zebra_if *)zl3vni->vxlan_if->info)) + /* get the vx-intf name for l3vni */ static inline const char *zl3vni_vxlan_if_name(struct zebra_l3vni *zl3vni) { -- cgit v1.2.3