net/mlx4: optimize Tx external memory registration
authorYongseok Koh <yskoh@mellanox.com>
Thu, 15 Nov 2018 10:29:16 +0000 (10:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 09:45:37 +0000 (10:45 +0100)
commit1948776360d22ca09754982c7da8c75a032f3325
tree8f9b36687c0874c5d1f472096738c13c1983da42
parent57e1073bdc00f3b76af959a66816141dce9d0b05
net/mlx4: 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: 31912d992403 ("net/mlx4: 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/mlx4/mlx4_mr.c
drivers/net/mlx4/mlx4_rxtx.h