net/mlx5: optimize Tx external memory registration
authorYongseok Koh <yskoh@mellanox.com>
Thu, 15 Nov 2018 10:29:17 +0000 (10:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 09:45:37 +0000 (10:45 +0100)
commitfeddd5d243b7b43d51d2e9655b9143c462384ea8
treebe3e908c0d86c295c34540f5a5d1d917fa18eb37
parent1948776360d22ca09754982c7da8c75a032f3325
net/mlx5: optimize Tx external memory registration

There's some performance drop due to extra condition checks on the
datapath. Checking for external memory registration should be consolidated
to the existing bottom-half.

Fixes: 7e43a32ee060 ("net/mlx5: support externally allocated static memory")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_mr.c
drivers/net/mlx5/mlx5_rxtx.h