const char *value, void *opaque)
{
int ret;
- struct ether_addr mac;
+ struct rte_ether_addr mac;
const struct rte_eth_dev_data *data = opaque;
struct rte_eth_dev_info dev_info;
uint32_t index;
/* Return 0 if devargs MAC is matching one of the device MACs. */
rte_eth_dev_info_get(data->port_id, &dev_info);
for (index = 0; index < dev_info.max_mac_addrs; index++)
- if (is_same_ether_addr(&mac, &data->mac_addrs[index]))
+ if (rte_is_same_ether_addr(&mac, &data->mac_addrs[index]))
return 0;
return -1; /* no match */
}
return edev;
}
-struct rte_class rte_class_eth = {
+static struct rte_class rte_class_eth = {
.dev_iterate = eth_dev_iterate,
};