mlx4_core: Clean up enabling of SENSE_PORT for older (ConnectX-1/-2) HCAs
authorRoland Dreier <roland@purestorage.com>
Thu, 27 Sep 2012 16:53:05 +0000 (09:53 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Oct 2012 09:10:44 +0000 (02:10 -0700)
commitca3e57a599e1f3624a6164a5c3a655859368f7aa
treeb5515a00d42519620872d3a67ffa337fcfa7a4a8
parent839f12434c7618d326b9d1ece5eca643e5e48d0a
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>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h