]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces/linux: don't check transmit queue size
authorVincent Bernat <vincent@bernat.im>
Sat, 30 Jan 2016 11:59:04 +0000 (12:59 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 30 Jan 2016 11:59:04 +0000 (12:59 +0100)
Its size can change while no netlink messages will be sent to update it.

src/daemon/interfaces-linux.c
src/daemon/lldpd.h
src/daemon/netlink.c

index 9803d30f22f6fb0b76d7bf8bd687e6185e6335bc..06694f4a3f430e47c43a0427b2274c00bee80760 100644 (file)
@@ -748,14 +748,6 @@ iflinux_add_physical(struct lldpd *cfg,
                        continue;
                }
 
-               /* Check queue len. If no queue, this usually means that this
-                  is not a "real" interface. */
-               if (iface->txqueue == 0) {
-                       log_debug("interfaces", "skip %s: no queue",
-                           iface->name);
-                       continue;
-               }
-
                /* Get the real MAC address (for example, if the interface is enslaved) */
                iflinux_get_permanent_mac(cfg, interfaces, iface);
 
index fd0d09e411281a4ed18bbfffbd5b9a101132fb13..aacb39e4d38da49725b52a4526211d476aedb62c 100644 (file)
@@ -321,7 +321,6 @@ struct interfaces_device {
 #ifdef HOST_OS_LINUX
        int lower_idx;          /* Index to lower interface */
        int upper_idx;          /* Index to upper interface */
-       int txqueue;            /* Transmit queue length */
 #endif
 };
 struct interfaces_address {
index e0c2b888240cbc2785089bccb29391e35dd3b371..d495f10f060fa7d33bcbd2f6865dfbe61fc65efc 100644 (file)
@@ -234,10 +234,6 @@ netlink_parse_link(struct nlmsghdr *msg,
                        /* Index of master interface */
                        iff->upper_idx = *(int*)RTA_DATA(attribute);
                        break;
-               case IFLA_TXQLEN:
-                       /* Transmit queue length */
-                       iff->txqueue = *(int*)RTA_DATA(attribute);
-                       break;
                case IFLA_MTU:
                        /* Maximum Transmission Unit */
                        iff->mtu = *(int*)RTA_DATA(attribute);