[dpdk-dev] [PATCHv6 18/33] net/dpaa2: adding eth ops to dpaa2

Ferruh Yigit ferruh.yigit at intel.com
Mon Jan 23 18:35:25 CET 2017


On 1/23/2017 11:59 AM, Hemant Agrawal wrote:
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> ---
<...>

>  static int
>  dpaa2_dev_init(struct rte_eth_dev *eth_dev)
>  {
<...>
> +	eth_dev->data->nb_rx_queues = priv->nb_rx_queues;
> +	eth_dev->data->nb_tx_queues = priv->nb_tx_queues;

No need to assign these during init(), app should set these via
rte_eth_dev_configure() API.

> +
> +	priv->hw = dpni_dev;
> +	priv->hw_id = hw_id;
> +	priv->flags = 0;

<...>


More information about the dev mailing list