]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix mpt_entry initialization in mlx4_mr_rereg_mem_write()
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 3 Feb 2015 15:57:15 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 00:17:45 +0000 (16:17 -0800)
commitcc35e6b6eedb5c42854c86e21e694e6f067e0e97
tree33f5abc4da61980c6dc1fc299ef67c3878384548
parent811323ad26b0366e93dd6c3ffc524ef2e4e68dfa
net/mlx4_core: Fix mpt_entry initialization in mlx4_mr_rereg_mem_write()

a) Previously, mlx4_mr_rereg_write filled the MPT's start
   and length with the old MPT's values.
   Fixing the initialization to take the new start and length.

b) In addition access flags in mpt_status were initialized instead of
   status due to bad boolean operation. Fixing the operation.

c) Initialization of pd_slave caused a protection error.
   Fix - removing this initialization.

d) In resource_tracker.c: Fixing vf encoding to be one-based.

Fixes: e6e13538 ('mlx4_core: Add helper functions to support MR re-registration')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mr.c
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c