|
@@ -300,6 +300,9 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
|
|
/* Sense port always allowed on supported devices for ConnectX-1 and -2 */
|
|
/* Sense port always allowed on supported devices for ConnectX-1 and -2 */
|
|
if (mlx4_priv(dev)->pci_dev_data & MLX4_PCI_DEV_FORCE_SENSE_PORT)
|
|
if (mlx4_priv(dev)->pci_dev_data & MLX4_PCI_DEV_FORCE_SENSE_PORT)
|
|
dev->caps.flags |= MLX4_DEV_CAP_FLAG_SENSE_SUPPORT;
|
|
dev->caps.flags |= MLX4_DEV_CAP_FLAG_SENSE_SUPPORT;
|
|
|
|
+ /* Don't do sense port on multifunction devices (for now at least) */
|
|
|
|
+ if (mlx4_is_mfunc(dev))
|
|
|
|
+ dev->caps.flags &= ~MLX4_DEV_CAP_FLAG_SENSE_SUPPORT;
|
|
|
|
|
|
dev->caps.log_num_macs = log_num_mac;
|
|
dev->caps.log_num_macs = log_num_mac;
|
|
dev->caps.log_num_vlans = MLX4_LOG_NUM_VLANS;
|
|
dev->caps.log_num_vlans = MLX4_LOG_NUM_VLANS;
|