]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: On linux let interface data come in through netlink messaging 11415/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 15 Jun 2022 12:27:32 +0000 (08:27 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 15 Jun 2022 14:34:30 +0000 (10:34 -0400)
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 <sharpd@nvidia.com>
zebra/interface.c

index 7eb98faeb11d0a896e0a04051f2ee29955b56e60..96e378444d22da26d61c694d83270f8e3fed7239 100644 (file)
@@ -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,