aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/mlx4.h
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2018-07-24 14:31:45 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-25 16:30:38 -0700
commit7cc77bf4c29c88af8d3d02d6dc88a71f85ecb1b6 (patch)
tree08c02321783891af748bb15cae929c66eee78a79 /drivers/net/ethernet/mellanox/mlx4/mlx4.h
parentMerge branch 'mlx5-Offload-setting-matching-on-tunnel-tos-ttl' (diff)
downloadlinux-dev-7cc77bf4c29c88af8d3d02d6dc88a71f85ecb1b6.tar.xz
linux-dev-7cc77bf4c29c88af8d3d02d6dc88a71f85ecb1b6.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mlx4.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
index 6e016092a6f1..ebcd2778eeb3 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
+++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
@@ -84,7 +84,6 @@ enum {
MLX4_MIN_MGM_LOG_ENTRY_SIZE = 7,
MLX4_MAX_MGM_LOG_ENTRY_SIZE = 12,
MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2),
- MLX4_MTT_ENTRY_PER_SEG = 8,
};
enum {