diff options
author | Stephen Worley <sworley@nvidia.com> | 2021-04-01 18:00:04 +0200 |
---|---|---|
committer | Stephen Worley <sworley@nvidia.com> | 2023-02-14 00:12:05 +0100 |
commit | b260197de92914bcabe2c560ce7f05127d242061 (patch) | |
tree | 61f186d45dac6df276a63f2b6dc99034b3bf98fb /zebra/zebra_vxlan_private.h | |
parent | lib,sharpd: add ability for sharpd to install vni labels (diff) | |
download | frr-b260197de92914bcabe2c560ce7f05127d242061.tar.xz frr-b260197de92914bcabe2c560ce7f05127d242061.zip |
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 <sworley@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vxlan_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |