mlx4: fix local protection error when Tx MP to MR cache is full
authorOlga Shern <olgas@mellanox.com>
Mon, 23 Nov 2015 14:44:40 +0000 (15:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:49:27 +0000 (17:49 +0100)
commit40100bfe34dae9a1a03fcd9e8137c4b5348574f9
tree65ef20e59801ae824593b69777f832d2e3db44a0
parent0a3b350da823307784fb247b36a334ca5035994f
mlx4: 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: 7fae69eeff13 ("mlx4: new poll mode driver")

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