On Tue, 20 Sep 2022 18:51:44 +0800
Dongdong Liu <[email protected]> wrote:

> +
> +     RTE_ETH_FOREACH_DEV(i) {
> +             /* Skip if port is not in mask */
> +             if ((enabled_port_mask & (1ul << i)) == 0)
> +                     continue;
> +
> +             if (!rte_eth_dev_is_valid_port(i))
> +                     continue;

There is no way RTE_ETH_FOREACH_DEV would iterate
over an invalid port.  If it did the macro would be seriously
broken.

That code is unnecessary.

Reply via email to