]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: stop asking for AF_BRIDGE interface info twice 9650/head
authorMark Stapp <mstapp@nvidia.com>
Tue, 21 Sep 2021 20:33:28 +0000 (16:33 -0400)
committerMark Stapp <mstapp@nvidia.com>
Tue, 21 Sep 2021 20:33:28 +0000 (16:33 -0400)
There were two identical blocks of code run at init time that
requested info about AF_BRIDGE - don't see any reason to do that
twice, so remove one block.

Signed-off-by: Mark Stapp <mstapp@nvidia.com>
zebra/if_netlink.c

index 8b3b788b727bb5a6636970441fe01bb3d40cd3d7..02d45a4217d6802cc13469062cf7f77956eb84c5 100644 (file)
@@ -1102,16 +1102,6 @@ int interface_lookup_netlink(struct zebra_ns *zns)
        if (ret < 0)
                return ret;
 
-       /* Get interface information - for bridge interfaces. */
-       ret = netlink_request_intf_addr(netlink_cmd, AF_BRIDGE, RTM_GETLINK,
-                                       RTEXT_FILTER_BRVLAN);
-       if (ret < 0)
-               return ret;
-       ret = netlink_parse_info(netlink_interface, netlink_cmd, &dp_info, 0,
-                                0);
-       if (ret < 0)
-               return ret;
-
        /* fixup linkages */
        zebra_if_update_all_links(zns);
        return 0;