[dpdk-dev] [PATCH v2 13/13] examples: take promiscuous mode switch result into account
Andrew Rybchenko
arybchenko at solarflare.com
Fri Sep 13 20:30:13 CEST 2019
On 9/13/19 7:40 PM, Ferruh Yigit wrote:
> On 9/9/2019 12:58 PM, Andrew Rybchenko wrote:
>> From: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
>>
>> rte_eth_promiscuous_enable()/rte_eth_promiscuous_disable() return
>> value was changed from void to int, so this patch modify usage
>> of these functions across examples according to new return type.
>>
>> Signed-off-by: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
>> Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
> <...>
>
>> diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c
>> index 0f48ae926c..a3a7478296 100644
>> --- a/examples/vm_power_manager/main.c
>> +++ b/examples/vm_power_manager/main.c
>> @@ -121,7 +121,9 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
>> addr.addr_bytes[4], addr.addr_bytes[5]);
>>
>> /* Enable RX in promiscuous mode for the Ethernet device. */
>> - rte_eth_promiscuous_enable(port);
>> + retval = rte_eth_promiscuous_enable(port);
>> + if (ret != 0)
>> + return retval;
> s/ret/retval
>
> error: ‘ret’ undeclared (first use in this function)
Thanks, unfortunately it was not build by ./devtools/test-build.sh
since libvirt-dev package was not installed.
More information about the dev
mailing list