Re: [dpdk-dev] [PATCH] lib/gro: fix bitwise overflow issue

2017-07-31 Thread Thomas Monjalon
31/07/2017 03:43, Jiayu Hu: > When try to get GRO types, expression "1 << i" with type "int" may > overflow. This patch is to fix this issue. > > Fixes: e996506a1c07 ("lib/gro: add Generic Receive Offload API framework") > Coverity issue: 158664 > > Signed-off-by: Jiayu Hu Applied, thanks

[dpdk-dev] [PATCH] lib/gro: fix bitwise overflow issue

2017-07-30 Thread Jiayu Hu
When try to get GRO types, expression "1 << i" with type "int" may overflow. This patch is to fix this issue. Fixes: e996506a1c07 ("lib/gro: add Generic Receive Offload API framework") Coverity issue: 158664 Signed-off-by: Jiayu Hu --- lib/librte_gro/rte_gro.c | 6 +++--- 1 file changed, 3 inse