fix query_iface_rxqueue_count_from_name
authorStefan Metzmacher <metze@samba.org>
Fri, 27 Sep 2019 04:10:03 +0000 (21:10 -0700)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 Jan 2020 12:26:51 +0000 (13:26 +0100)
lib/socket/interfaces.c

index 16fadd23db3a1f0755f8f622f3940d239b223e8f..ce2d6c27520390f5d2478c2e6504e13d278e429a 100644 (file)
@@ -180,7 +180,6 @@ done:
 static void query_iface_rxqueue_count_from_name(const char *name, uint32_t *rx_queues)
 {
        int ret = 0;
-       struct ethtool_cmd ecmd;
        struct ethtool_channels edata;
        struct ifreq ifr;
        int fd;
@@ -256,7 +255,7 @@ static int _get_interfaces(TALLOC_CTX *mem_ctx, struct iface_struct **pifaces)
        /* Loop through interfaces, looking for given IP address */
        for (ifptr = iflist; ifptr != NULL; ifptr = ifptr->ifa_next) {
                uint64_t if_speed = 1000 * 1000 * 1000; /* 1Gbps */
-               uint64_t rx_queues = 0;
+               uint32_t rx_queues = 0;
 
                if (!ifptr->ifa_addr || !ifptr->ifa_netmask) {
                        continue;