net/mlx4_core: Cleanup FMR unmapping flow
authorTariq Toukan <tariqt@mellanox.com>
Thu, 28 Dec 2017 14:26:10 +0000 (16:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Dec 2017 17:24:05 +0000 (12:24 -0500)
commitfd4a3e2828b4ca35aef40e5bdc1ed7d87b3cb50a
treeb5f957037b45bffc10c0e33618c271e0621d07c1
parentdc484851edccbfb1051b821f713e2ae16b57acdf
net/mlx4_core: Cleanup FMR unmapping flow

Remove redundant and not essential operations in fmr unmap/free.
According to device spec, in FMR unmap it is sufficient to set
ownership bit to SW. This allows remapping afterwards.

Fixes: 8ad11fb6b073 ("IB/mlx4: Implement FMRs")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mr.c