[dpdk-dev] [dpdk-stable] [PATCH] net/tap: fix icc build

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Tue Apr 24 15:21:06 CEST 2018



> -----Original Message-----
> From: stable [mailto:stable-bounces at dpdk.org] On Behalf Of Ferruh Yigit
> Sent: Monday, March 12, 2018 7:32 PM
> To: Pascal Mazon <pascal.mazon at 6wind.com>
> Cc: dev at dpdk.org; Yigit, Ferruh <ferruh.yigit at intel.com>; stable at dpdk.org
> Subject: [dpdk-stable] [PATCH] net/tap: fix icc build
> 
> build error:
> .../dpdk/drivers/net/tap/rte_eth_tap.c(598):
> error #279: controlling expression is constant
> 	RTE_ASSERT(!"unsupported request type: must not happen");
> 
> Although RTE_ASSERT helps debugging this issue when assert enabled, constant
> expression in assert means this path can be taken during runtime and there is no
> protection against it when assert is disabled.
> 
> Adding error log and error return back, replacing RTE_ASSERT.
> 
> Fixes: 7748a4b44196 ("net/tap: add debug messages")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>

Acked-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>


More information about the dev mailing list