From 8b9b1d60431b0bad5cecfe7655296ce4b017c013 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 15 Jun 2022 08:27:32 -0400 Subject: [PATCH] zebra: On linux let interface data come in through netlink messaging Consolidate on linux to using the netlink api for gathering all data about a interface. Leave this interface alone in the meantime for other OS's. This also has the side effect of reducing the amount of work being done on linux in that FRR was handling shut/no shut events 2 times. Once for the ioctl question asked and once for the netlink message received. Signed-off-by: Donald Sharp --- zebra/interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/interface.c b/zebra/interface.c index 7eb98faeb1..96e378444d 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1119,7 +1119,9 @@ void if_down(struct interface *ifp) void if_refresh(struct interface *ifp) { +#ifndef GNU_LINUX if_get_flags(ifp); +#endif } void zebra_if_update_link(struct interface *ifp, ifindex_t link_ifindex, -- 2.39.5