net/mlx5: fix memory region cache last index
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 25 Jan 2018 16:18:02 +0000 (18:18 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit627cbfad1ca0d4e12744a28d61b8881ab5ff3757
treee1632dbe8169e2d4b22ecb93079d6e1aa0c573e0
parentbb6883120a95861c1d4dae27839871ce5805e381
net/mlx5: fix memory region cache last index

In case Memory Region cache is full, the new mempool will be
inserted in the last index of the array.

Update the last entry being hit to reflect it.

Fixes: b0b093845793 ("net/mlx5: use buffer address for LKEY search")
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