net/mlx4_core: Allow MTTs starting at any index
authorTariq Toukan <tariqt@mellanox.com>
Tue, 24 Jul 2018 11:31:45 +0000 (14:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 23:30:38 +0000 (16:30 -0700)
commit7cc77bf4c29c88af8d3d02d6dc88a71f85ecb1b6
tree08c02321783891af748bb15cae929c66eee78a79
parente8886643a6c975f10f53a810e7350d48c2d25057
net/mlx4_core: Allow MTTs starting at any index

Allow obtaining MTTs starting at any index,
thus give a better cache utilization.

For this, allow setting log_mtts_per_seg to 0, and use
this in default.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Anaty Rahamim Bar Kat <anaty@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/profile.c