On Fri,  6 Sep 2019 15:18:11 +0200
Marcin Zapolski <marcinx.a.zapol...@intel.com> wrote:

> +RTE_INIT(rte_eth_dev_init)
> +{
> +     int i;
> +
> +     for (i = 0; i < RTE_MAX_ETHPORTS; i++)
> +             rte_eth_dev_functions[i] =
> +                     (struct rte_eth_dev_fcns *)(&rte_eth_devices[i]);

Casts are error prone. Is it possible to use container_of instead of direct 
cast.

Reply via email to