net/mlx5: fix memory region boundary checks
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 25 Jan 2018 16:18:03 +0000 (18:18 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit25f28d9d294d00a1c539d47a13c14ce282e31b09
tree0183178a8228462885c2a70d37a2c4bb85b495a6
parent627cbfad1ca0d4e12744a28d61b8881ab5ff3757
net/mlx5: fix memory region boundary checks

Since commit f81ec748434b ("net/mlx5: fix memory region lookup") the
Memory Region (MR) are no longer overlaps.

Comparing the end address of the MR should be exclusive, otherwise two
contiguous MRs may cause wrong matching.

Fixes: f81ec748434b ("net/mlx5: fix memory region lookup")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxtx.h