mlx5: fix local protection error when Tx MP to MR cache is full
authorOlga Shern <olgas@mellanox.com>
Mon, 23 Nov 2015 14:44:47 +0000 (15:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:49:27 +0000 (17:49 +0100)
commitecbfdbad6e707e1dbf44238e0317cc4ccf69e9b5
tree3663e90b6da40f5b8b6b3b8930617d7ba6877989
parent40100bfe34dae9a1a03fcd9e8137c4b5348574f9
mlx5: fix local protection error when Tx MP to MR cache is full

When MP to MR cache is full, the last (newest) MR is freed instead of the
first (oldest) one, causing local protection errors during TX.

Fixes: 2e22920b85d9 ("mlx5: support non-scattered Tx and Rx")

Signed-off-by: Olga Shern <olgas@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c