drivers/net: use device name from device structure
[dpdk.git] / drivers / net / bonding / rte_eth_bond_args.c
index c718e61..a422eb8 100644 (file)
@@ -90,7 +90,7 @@ find_port_id_by_dev_name(const char *name)
                if (rte_eth_devices[i].data == NULL)
                        continue;
 
-               if (strcmp(rte_eth_devices[i].data->name, name) == 0)
+               if (strcmp(rte_eth_devices[i].device->name, name) == 0)
                        return i;
        }
        return -1;