diff options
author | Roland Dreier <roland@purestorage.com> | 2012-09-27 18:23:41 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-10-01 11:10:39 +0200 |
commit | 839f12434c7618d326b9d1ece5eca643e5e48d0a (patch) | |
tree | 5156372842e84963423bb7a7622e485fec9e2c7f /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | mlx4_core: Fix crash on uninitialized priv->cmd.slave_sem (diff) | |
download | linux-839f12434c7618d326b9d1ece5eca643e5e48d0a.tar.xz linux-839f12434c7618d326b9d1ece5eca643e5e48d0a.zip |
mlx4_core: Stash PCI ID driver_data in mlx4_priv structure
That way we can check flags later on, when we've finished with the
pci_device_id structure. Also convert the "is VF" flag to an enum:
"Never do in the preprocessor what can be done in C."
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index 71eed05426ec..ac58189ae6da 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h @@ -768,6 +768,10 @@ struct _rule_hw { }; }; +enum { + MLX4_PCI_DEV_IS_VF = 1 << 0, +}; + struct mlx4_priv { struct mlx4_dev dev; @@ -775,6 +779,8 @@ struct mlx4_priv { struct list_head ctx_list; spinlock_t ctx_lock; + int pci_dev_data; + struct list_head pgdir_list; struct mutex pgdir_mutex; |