[dpdk-stable] [PATCH v2] [18.11] net/mlx5: use open/read/close for ib stats query

Kevin Traynor ktraynor at redhat.com
Tue Dec 8 14:37:56 CET 2020


On 08/12/2020 12:45, Viacheslav Ovsiienko wrote:
> From: Mohsin Shaikh <mohsinshaikh at niometrics.com>
> 
> [ upstream commit 00437823cb80b8fa87dbe61becc07bd42ee98549 ]
> 
> fgets(3)/fread(3)/fscanf(3) etc. use mmap(2)/munmap(2) which leads
> to TLB shutdown interrupts to all DPDK app cores including RX cores.
> This can cause packet drops. Use read(2)/write(2) instead.
> 
> Bugzilla ID: 440
> Cc: stable at dpdk.org
> 
> Signed-off-by: Mohsin Shaikh <mohsinshaikh at niometrics.com>
> Reviewed-by: Alexander Kozyrev <akozyrev at mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_stats.c | 21 ++++++++++++++-------
>  1 file changed, 14 insertions(+), 7 deletions(-)

Applied, thanks.



More information about the stable mailing list