src/dpdk/drivers/net/mlx5/mlx5_mac.c
static void
mlx5_internal_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
{
	MLX5_ASSERT(index < MLX5_MAX_MAC_ADDRESSES);
	if (rte_is_zero_ether_addr(&dev->data->mac_addrs[index]))
		return;
	mlx5_os_mac_addr_remove(dev, index);
	memset(&dev->data->mac_addrs[index], 0, sizeof(struct rte_ether_addr));
}
/**
 * Remove a MAC address from the internal array.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 * @param index
 *   MAC address index.
 */
Remove a MAC address from the internal array.
@param dev
Pointer to Ethernet device structure.
@param index
MAC address index.
Remove a MAC address from the internal array . @param dev Pointer to Ethernet device structure . @param index MAC address index .
static void
mlx5_internal_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
{
	MLX5_ASSERT(index < MLX5_MAX_MAC_ADDRESSES);
	if (rte_is_zero_ether_addr(&dev->data->mac_addrs[index]))
		return;
	mlx5_os_mac_addr_remove(dev, index);
	memset(&dev->data->mac_addrs[index], 0, sizeof(struct rte_ether_addr));
}
static void mlx5_internal_mac_addr_remove ( struct rte_eth_dev * dev , uint32_t index ) { MLX5_ASSERT ( index < MLX5_MAX_MAC_ADDRESSES ) ; if ( rte_is_zero_ether_addr ( & dev -> data -> mac_addrs [ index ] ) ) return ; mlx5_os_mac_addr_remove ( dev , index ) ; memset ( & dev -> data -> mac_addrs [ index ] , 0 , sizeof ( struct rte_ether_addr ) ) ; }
Remove a MAC address from the internal array.
Remove a MAC address from the internal array .