net/mlx5: optimize Tx doorbell write
authorYongseok Koh <yskoh@mellanox.com>
Thu, 15 Nov 2018 10:29:19 +0000 (10:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 09:45:37 +0000 (10:45 +0100)
commit317e64739de05a67406f43dd1860433359a81435
tree171e29e9e409ecbc0c6a3a691a01199b834a09ba
parentfeddd5d243b7b43d51d2e9655b9143c462384ea8
net/mlx5: optimize Tx doorbell write

Unnecessary volatile attribute keeps compiler from further optimizing the
code and this results in a little performance drop (~2%). Because of memory
barriers, it is safe to remove.

Fixes: 6bf10ab69be0 ("net/mlx5: support 32-bit systems")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.h