net/mlx4_core: Fix VF overwrite of module param which disables DMFS on new probed PFs
authorMajd Dibbiny <majd@mellanox.com>
Thu, 23 Feb 2017 10:02:43 +0000 (12:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 15:57:57 +0000 (10:57 -0500)
In the VF driver, module parameter mlx4_log_num_mgm_entry_size was
mistakenly overwritten -- and in a manner which overrode the
device-managed flow steering option encoded in the parameter.

log_num_mgm_entry_size is a global module parameter which
affects all ConnectX-3 PFs installed on that host.
If a VF changes log_num_mgm_entry_size, this will affect all PFs
which are probed subsequent to the change (by disabling DMFS for
those PFs).

Fixes: 3c439b5586e9 ("mlx4_core: Allow choosing flow steering mode")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c

index 6832342217410c9079872cd4b17bc80d148912be..005e1049c97701c6d28841bccb432c02ba097225 100644 (file)
@@ -841,8 +841,6 @@ static int mlx4_slave_cap(struct mlx4_dev *dev)
                return -EINVAL;
        }
 
-       mlx4_log_num_mgm_entry_size = hca_param.log_mc_entry_sz;
-
        dev->caps.hca_core_clock = hca_param.hca_core_clock;
 
        memset(&dev_cap, 0, sizeof(dev_cap));