diff options
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 877d1122f787..bc1e5d41c292 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c | |||
| @@ -300,6 +300,9 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) | |||
| 300 | /* Sense port always allowed on supported devices for ConnectX-1 and -2 */ | 300 | /* Sense port always allowed on supported devices for ConnectX-1 and -2 */ |
| 301 | if (mlx4_priv(dev)->pci_dev_data & MLX4_PCI_DEV_FORCE_SENSE_PORT) | 301 | if (mlx4_priv(dev)->pci_dev_data & MLX4_PCI_DEV_FORCE_SENSE_PORT) |
| 302 | dev->caps.flags |= MLX4_DEV_CAP_FLAG_SENSE_SUPPORT; | 302 | dev->caps.flags |= MLX4_DEV_CAP_FLAG_SENSE_SUPPORT; |
| 303 | /* Don't do sense port on multifunction devices (for now at least) */ | ||
| 304 | if (mlx4_is_mfunc(dev)) | ||
| 305 | dev->caps.flags &= ~MLX4_DEV_CAP_FLAG_SENSE_SUPPORT; | ||
| 303 | 306 | ||
| 304 | dev->caps.log_num_macs = log_num_mac; | 307 | dev->caps.log_num_macs = log_num_mac; |
| 305 | dev->caps.log_num_vlans = MLX4_LOG_NUM_VLANS; | 308 | dev->caps.log_num_vlans = MLX4_LOG_NUM_VLANS; |
