From: Donald Sharp Date: Wed, 15 Jun 2022 12:27:32 +0000 (-0400) Subject: zebra: On linux let interface data come in through netlink messaging X-Git-Tag: base_8.4~348^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8b9b1d60431b0bad5cecfe7655296ce4b017c013;p=mirror%2Ffrr.git 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 --- 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,