* 0 on success, negative errno value otherwise and rte_errno is set.
*/
int
-mlx4_get_mac(struct mlx4_priv *priv, uint8_t (*mac)[ETHER_ADDR_LEN])
+mlx4_get_mac(struct mlx4_priv *priv, uint8_t (*mac)[RTE_ETHER_ADDR_LEN])
{
struct ifreq request;
int ret = mlx4_ifreq(priv, SIOCGIFHWADDR, &request);
if (ret)
return ret;
- memcpy(mac, request.ifr_hwaddr.sa_data, ETHER_ADDR_LEN);
+ memcpy(mac, request.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN);
return 0;
}
* 0 on success, negative errno value otherwise and rte_errno is set.
*/
int
-mlx4_mac_addr_add(struct rte_eth_dev *dev, struct ether_addr *mac_addr,
+mlx4_mac_addr_add(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
uint32_t index, uint32_t vmdq)
{
struct mlx4_priv *priv = dev->data->dev_private;
* 0 on success, negative errno value otherwise and rte_errno is set.
*/
int
-mlx4_set_mc_addr_list(struct rte_eth_dev *dev, struct ether_addr *list,
+mlx4_set_mc_addr_list(struct rte_eth_dev *dev, struct rte_ether_addr *list,
uint32_t num)
{
struct mlx4_priv *priv = dev->data->dev_private;
for (i = RTE_DIM(priv->mac) - num;
i != RTE_DIM(priv->mac) - priv->mac_mc;
++i)
- if (!is_zero_ether_addr(&priv->mac[i])) {
+ if (!rte_is_zero_ether_addr(&priv->mac[i])) {
rte_errno = EBUSY;
return -rte_errno;
}
* 0 on success, negative errno value otherwise and rte_errno is set.
*/
int
-mlx4_mac_addr_set(struct rte_eth_dev *dev, struct ether_addr *mac_addr)
+mlx4_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)
{
return mlx4_mac_addr_add(dev, mac_addr, 0, 0);
}