net/mlx5: use open/read/close for ib stats query
authorMohsin Shaikh <mohsinshaikh@niometrics.com>
Thu, 9 Apr 2020 20:37:06 +0000 (04:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit00437823cb80b8fa87dbe61becc07bd42ee98549
tree321814fa7b8c973ca420b9f1f08b5ff08b5ab96a
parent3ac3d8234b823126739475528cc23cf9ad2a8c17
net/mlx5: use open/read/close for ib stats query

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@dpdk.org
Signed-off-by: Mohsin Shaikh <mohsinshaikh@niometrics.com>
Reviewed-by: Alexander Kozyrev <akozyrev@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_stats.c