net/mlx5: fix instruction hotspot on replenishing Rx buffer
authorYongseok Koh <yskoh@mellanox.com>
Mon, 14 Jan 2019 21:16:22 +0000 (13:16 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 Jan 2019 01:40:40 +0000 (02:40 +0100)
commit12d468a62bc19ca08ee9964dcb923f67f87fba7d
treef049d0bb5de28b0441801a7e1342eb8607c34c95
parentc277b34c1b3b787d4b89bb4d0663c1871effbe55
net/mlx5: fix instruction hotspot on replenishing Rx buffer

On replenishing Rx buffers for vectorized Rx, mbuf->buf_addr isn't needed
to be accessed as it is static and easily calculated from the mbuf address.
Accessing the mbuf content causes unnecessary load stall and it is worsened
on ARM.

Fixes: 545b884b1da3 ("net/mlx5: fix buffer address posting in SSE Rx")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_rxtx_vec.h