mlx4_core: Allow choosing flow steering mode
Device managed flow steering will be enabled only under administrator directive provided through setting the existing module parameter log_num_mgm_entry_size to -1 (if the device actually supports flow steering). If flow steering isn't requested or not available, the driver will use the value of log_num_mgm_entry_size and B0 steering. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:

committed by
Roland Dreier

父節點
7b8157bedc
當前提交
3c439b5586
@@ -54,12 +54,7 @@ struct mlx4_mgm {
|
||||
|
||||
int mlx4_get_mgm_entry_size(struct mlx4_dev *dev)
|
||||
{
|
||||
if (dev->caps.steering_mode ==
|
||||
MLX4_STEERING_MODE_DEVICE_MANAGED)
|
||||
return 1 << MLX4_FS_MGM_LOG_ENTRY_SIZE;
|
||||
else
|
||||
return min((1 << mlx4_log_num_mgm_entry_size),
|
||||
MLX4_MAX_MGM_ENTRY_SIZE);
|
||||
return 1 << dev->oper_log_mgm_entry_size;
|
||||
}
|
||||
|
||||
int mlx4_get_qp_per_mgm(struct mlx4_dev *dev)
|
||||
|
Reference in New Issue
Block a user