net/ice: support Rx scatter AVX2 vector
[dpdk.git] / drivers / net / netvsc / hn_vf.c
index de278eb..883272f 100644 (file)
@@ -10,8 +10,8 @@
 #include <errno.h>
 #include <unistd.h>
 #include <dirent.h>
+#include <fcntl.h>
 #include <sys/types.h>
-#include <sys/fcntl.h>
 #include <sys/uio.h>
 
 #include <rte_ether.h>
 static int hn_vf_match(const struct rte_eth_dev *dev)
 {
        const struct ether_addr *mac = dev->data->mac_addrs;
-       char buf[32];
        int i;
 
-       ether_format_addr(buf, sizeof(buf), mac);
        RTE_ETH_FOREACH_DEV(i) {
                const struct rte_eth_dev *vf_dev = &rte_eth_devices[i];
                const struct ether_addr *vf_mac = vf_dev->data->mac_addrs;
@@ -44,7 +42,6 @@ static int hn_vf_match(const struct rte_eth_dev *dev)
                if (vf_dev == dev)
                        continue;
 
-               ether_format_addr(buf, sizeof(buf), vf_mac);
                if (is_same_ether_addr(mac, vf_mac))
                        return i;
        }