summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/main.c
diff options
context:
space:
mode:
authorMaor Gottlieb2014-12-30 10:59:49 +0100
committerDavid S. Miller2015-01-02 21:41:28 +0100
commita51e0df4c1e06afd7aba84496c14238e6b363caa (patch)
tree8e424689d6fe41dd680a739c0e4ceebefd6592db /drivers/net/ethernet/mellanox/mlx4/main.c
parentqlcnic: Fix return value in qlcnic_probe() (diff)
downloadkernel-qcow2-linux-a51e0df4c1e06afd7aba84496c14238e6b363caa.tar.gz
kernel-qcow2-linux-a51e0df4c1e06afd7aba84496c14238e6b363caa.tar.xz
kernel-qcow2-linux-a51e0df4c1e06afd7aba84496c14238e6b363caa.zip
net/mlx4_core: Correcly update the mtt's offset in the MR re-reg flow
Previously, mlx4_mt_rereg_write filled the MPT's entity_size with the old MTT's page shift, which could result in using an incorrect offset. Fix the initialization to be after we calculate the new MTT offset. In addition, assign mtt order to -1 after calling mlx4_mtt_cleanup. This is necessary in order to mark the MTT as invalid and avoid freeing it later. Fixes: e630664 ('mlx4_core: Add helper functions to support MR re-registration') Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/main.c')
0 files changed, 0 insertions, 0 deletions