diff options
author | Roland Dreier <roland@purestorage.com> | 2012-09-27 09:53:05 -0700 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-10-01 02:10:44 -0700 |
commit | ca3e57a599e1f3624a6164a5c3a655859368f7aa (patch) | |
tree | b5515a00d42519620872d3a67ffa337fcfa7a4a8 /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | 839f12434c7618d326b9d1ece5eca643e5e48d0a (diff) | |
download | blackbird-op-linux-ca3e57a599e1f3624a6164a5c3a655859368f7aa.tar.gz blackbird-op-linux-ca3e57a599e1f3624a6164a5c3a655859368f7aa.zip |
mlx4_core: Clean up enabling of SENSE_PORT for older (ConnectX-1/-2) HCAs
Instead of having a hard-coded "PCI device ID != 0x1003" (which
obviously breaks as newer devices with ID != 0x1003 become available),
instead let's set a flag in our PCI device table for the older devices
where we're supposed to force using SENSE_PORT. This also avoids
enabling SENSE_PORT for virtual functions by mistake.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index ac58189ae6da..1cf42036d7bb 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h @@ -770,6 +770,7 @@ struct _rule_hw { enum { MLX4_PCI_DEV_IS_VF = 1 << 0, + MLX4_PCI_DEV_FORCE_SENSE_PORT = 1 << 1, }; struct mlx4_priv { |