src/dpdk/drivers/net/mlx5/mlx5_mac.c
void
mlx5_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
{
	int ret;

	if (index >= MLX5_MAX_UC_MAC_ADDRESSES)
		return;
	mlx5_internal_mac_addr_remove(dev, index);
	if (!dev->data->promiscuous) {
		ret = mlx5_traffic_restart(dev);
		if (ret)
			DRV_LOG(ERR, "port %u cannot restart traffic: %s",
				dev->data->port_id, strerror(rte_errno));
	}
}
/**
 * DPDK callback to remove a MAC address.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 * @param index
 *   MAC address index.
 */
DPDK callback to remove a MAC address.
@param dev
Pointer to Ethernet device structure.
@param index
MAC address index.
DPDK callback to remove a MAC address . @param dev Pointer to Ethernet device structure . @param index MAC address index .
void
mlx5_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
{
	int ret;
	if (index >= MLX5_MAX_UC_MAC_ADDRESSES)
		return;
	mlx5_internal_mac_addr_remove(dev, index);
	if (!dev->data->promiscuous) {
		ret = mlx5_traffic_restart(dev);
		if (ret)
			DRV_LOG(ERR, "port %u cannot restart traffic: %s",
				dev->data->port_id, strerror(rte_errno));
	}
}
void mlx5_mac_addr_remove ( struct rte_eth_dev * dev , uint32_t index ) { int ret ; if ( index >= MLX5_MAX_UC_MAC_ADDRESSES ) return ; mlx5_internal_mac_addr_remove ( dev , index ) ; if ( ! dev -> data -> promiscuous ) { ret = mlx5_traffic_restart ( dev ) ; if ( ret ) DRV_LOG ( ERR , " " , dev -> data -> port_id , strerror ( rte_errno ) ) ; } }
DPDK callback to remove a MAC address.
DPDK callback to remove a MAC address .