src/dpdk/drivers/net/mlx4/mlx4.c
static int
mlx4_dev_configure(struct rte_eth_dev *dev)
{
	struct mlx4_priv *priv = dev->data->dev_private;
	struct rte_flow_error error;
	int ret;

	/* Prepare internal flow rules. */
	ret = mlx4_flow_sync(priv, &error);
	if (ret) {
		ERROR("cannot set up internal flow rules (code %d, \"%s\"),"
		      " flow error type %d, cause %p, message: %s",
		      -ret, strerror(-ret), error.type, error.cause,
		      error.message ? error.message : "(unspecified)");
		goto exit;
	}
	ret = mlx4_intr_install(priv);
	if (ret) {
		ERROR("%p: interrupt handler installation failed",
		      (void *)dev);
		goto exit;
	}
	ret = mlx4_proc_priv_init(dev);
	if (ret) {
		ERROR("%p: process private data allocation failed",
		      (void *)dev);
		goto exit;
	}
exit:
	return ret;
}
/**
 * DPDK callback for Ethernet device configuration.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 *
 * @return
 *   0 on success, negative errno value otherwise and rte_errno is set.
 */
DPDK callback for Ethernet device configuration.
@param dev
Pointer to Ethernet device structure.

@return
0 on success, negative errno value otherwise and rte_errno is set.
DPDK callback for Ethernet device configuration . @param dev Pointer to Ethernet device structure . @return 0 on success negative errno value otherwise and rte_errno is set .
static int
mlx4_dev_configure(struct rte_eth_dev *dev)
{
	struct mlx4_priv *priv = dev->data->dev_private;
	struct rte_flow_error error;
	int ret;
	ret = mlx4_flow_sync(priv, &error);
	if (ret) {
		ERROR("cannot set up internal flow rules (code %d, \"%s\"),"
		      " flow error type %d, cause %p, message: %s",
		      -ret, strerror(-ret), error.type, error.cause,
		      error.message ? error.message : "(unspecified)");
		goto exit;
	}
	ret = mlx4_intr_install(priv);
	if (ret) {
		ERROR("%p: interrupt handler installation failed",
		      (void *)dev);
		goto exit;
	}
	ret = mlx4_proc_priv_init(dev);
	if (ret) {
		ERROR("%p: process private data allocation failed",
		      (void *)dev);
		goto exit;
	}
exit:
	return ret;
}
static int mlx4_dev_configure ( struct rte_eth_dev * dev ) { struct mlx4_priv * priv = dev -> data -> dev_private ; struct rte_flow_error error ; int ret ; ret = mlx4_flow_sync ( priv , & error ) ; if ( ret ) { ERROR ( " \" \" " " " , - ret , strerror ( - ret ) , error . type , error . cause , error . message ? error . message : " " ) ; goto exit ; } ret = mlx4_intr_install ( priv ) ; if ( ret ) { ERROR ( " " , ( void * ) dev ) ; goto exit ; } ret = mlx4_proc_priv_init ( dev ) ; if ( ret ) { ERROR ( " " , ( void * ) dev ) ; goto exit ; } exit : return ret ; }
DPDK callback for Ethernet device configuration.
DPDK callback for Ethernet device configuration .
/* Prepare internal flow rules. */