mlx4_core: Stash PCI ID driver_data in mlx4_priv structure
authorRoland Dreier <roland@purestorage.com>
Thu, 27 Sep 2012 16:23:41 +0000 (09:23 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Oct 2012 09:10:39 +0000 (02:10 -0700)
commit839f12434c7618d326b9d1ece5eca643e5e48d0a
tree5156372842e84963423bb7a7622e485fec9e2c7f
parentf3d4c89ee4a8c993cc334a67f84a3fb724a1dd35
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>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h