]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 27 Sep 2012 16:53:05 +0000 (09:53 -0700)
commit2670b480337ace31348aa7f99302b3b0e0ab34b4
tree04652ec49a4ab3845bfecb40c796ab23b578ac77
parent6b6f29c687ce2d035706f31025e2f5bcbbe46e08
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