summaryrefslogtreecommitdiffstats
path: root/zebra/interface.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-08-29 11:29:07 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-08-29 11:34:08 +0200
commit0e4864eaf0dfd5d883d8192a905405b9a72af68e (patch)
tree8adeb4e6602bec1cd545679e89d24ac0aecdeeab /zebra/interface.h
parentzebra: when veth link is used across vrf, the link may not be good (diff)
downloadfrr-0e4864eaf0dfd5d883d8192a905405b9a72af68e.tar.xz
frr-0e4864eaf0dfd5d883d8192a905405b9a72af68e.zip
zebra: do not update link if interface is veth interface
when interface is a virtual ethernet interface, then there is no need to update link pointer of interface. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/interface.h')
-rw-r--r--zebra/interface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/interface.h b/zebra/interface.h
index bb39ac5e6..956d430cf 100644
--- a/zebra/interface.h
+++ b/zebra/interface.h
@@ -191,6 +191,7 @@ typedef enum {
ZEBRA_IF_BRIDGE, /* bridge device */
ZEBRA_IF_VLAN, /* VLAN sub-interface */
ZEBRA_IF_MACVLAN, /* MAC VLAN interface*/
+ ZEBRA_IF_VETH, /* VETH interface*/
} zebra_iftype_t;
/* Zebra "slave" interface type */
@@ -312,7 +313,10 @@ static inline void zebra_if_set_ziftype(struct interface *ifp,
#define IS_ZEBRA_IF_MACVLAN(ifp) \
(((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_MACVLAN)
-#define IS_ZEBRA_IF_BRIDGE_SLAVE(ifp) \
+#define IS_ZEBRA_IF_VETH(ifp) \
+ (((struct zebra_if *)(ifp->info))->zif_type == ZEBRA_IF_VETH)
+
+#define IS_ZEBRA_IF_BRIDGE_SLAVE(ifp) \
(((struct zebra_if *)(ifp->info))->zif_slave_type \
== ZEBRA_IF_SLAVE_BRIDGE)