src/dpdk/drivers/net/mlx4/mlx4_ethdev.c
void
mlx4_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
{
	struct mlx4_priv *priv = dev->data->dev_private;
	struct rte_flow_error error;

	if (index >= RTE_DIM(priv->mac) - priv->mac_mc) {
		rte_errno = EINVAL;
		return;
	}
	memset(&priv->mac[index], 0, sizeof(priv->mac[index]));
	if (!mlx4_flow_sync(priv, &error))
		return;
	ERROR("failed to synchronize flow rules after removing MAC address"
	      " at index %d (code %d, \"%s\"),"
	      " flow error type %d, cause %p, message: %s",
	      index, rte_errno, strerror(rte_errno), error.type, error.cause,
	      error.message ? error.message : "(unspecified)");
}
/**
 * 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
mlx4_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
{
	struct mlx4_priv *priv = dev->data->dev_private;
	struct rte_flow_error error;
	if (index >= RTE_DIM(priv->mac) - priv->mac_mc) {
		rte_errno = EINVAL;
		return;
	}
	memset(&priv->mac[index], 0, sizeof(priv->mac[index]));
	if (!mlx4_flow_sync(priv, &error))
		return;
	ERROR("failed to synchronize flow rules after removing MAC address"
	      " at index %d (code %d, \"%s\"),"
	      " flow error type %d, cause %p, message: %s",
	      index, rte_errno, strerror(rte_errno), error.type, error.cause,
	      error.message ? error.message : "(unspecified)");
}
void mlx4_mac_addr_remove ( struct rte_eth_dev * dev , uint32_t index ) { struct mlx4_priv * priv = dev -> data -> dev_private ; struct rte_flow_error error ; if ( index >= RTE_DIM ( priv -> mac ) - priv -> mac_mc ) { rte_errno = EINVAL ; return ; } memset ( & priv -> mac [ index ] , 0 , sizeof ( priv -> mac [ index ] ) ) ; if ( ! mlx4_flow_sync ( priv , & error ) ) return ; ERROR ( " " " \" \" " " " , index , rte_errno , strerror ( rte_errno ) , error . type , error . cause , error . message ? error . message : " " ) ; }
DPDK callback to remove a MAC address.
DPDK callback to remove a MAC address .