return retval;
/* Enable RX in promiscuous mode for the Ethernet device. */
- rte_eth_promiscuous_enable(port);
+ retval = rte_eth_promiscuous_enable(port);
+ if (retval != 0)
+ return retval;
return 0;
}
.. code-block:: c
- rte_eth_promiscuous_enable(port);
+ retval = rte_eth_promiscuous_enable(port);
The Lcores Main
.. code-block:: c
- static __attribute__((noreturn)) void
+ static __rte_noreturn void
lcore_main(void)
{
uint16_t port;