[dpdk-dev] [PATCH v2] net/mlx4: fix drop flow resources not freed

Shahaf Shuler shahafs at mellanox.com
Thu Feb 1 09:40:19 CET 2018


Wednesday, January 31, 2018 5:33 PM, Adrien Mazarguil:
> Resources allocated for drop flow rules are not freed properly. This causes a
> memory leak and triggers an assertion failure on a reference counter when
> compiled in debug mode.
> 
> This issue can be reproduced with testpmd by entering the following
> commands:
> 
>  flow create 0 ingress pattern eth / end actions drop / end  port start all  port
> stop all  port start all  port stop all  quit
> 
> The reason is additional references are taken when re-enabling existing flow
> rules, a common occurrence when rehashing configuration.
> 
> Fixes: d3a7e09234e4 ("net/mlx4: allocate drop flow resources on demand")
> Cc: stable at dpdk.org
> 
> Reported-by: Moti Haimovsky <motih at mellanox.com>
> Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
> ---

Applied to next-net-mlx, thanks. 


More information about the dev mailing list