mlx4_core: Disable SENSE_PORT for multifunction devices
authorRoland Dreier <roland@purestorage.com>
Thu, 27 Sep 2012 17:01:19 +0000 (10:01 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Oct 2012 09:10:45 +0000 (02:10 -0700)
commitaadf4f3f66a7b710b05b31ac0839fbbf59e41f7c
treed33fab82c180e7919ede40f02c1eea363a4e40c6
parentca3e57a599e1f3624a6164a5c3a655859368f7aa
mlx4_core: Disable SENSE_PORT for multifunction devices

In the current driver, the SENSE_PORT firmware command is issued as a
"wrapped" command, but the command handling code doesn't have a
wrapper, so it will never do anything other than log an error message.
The latest ConnectX-3 2.11.500 firmware reports the SENSE_PORT
capability even in multi-function (SR-IOV) mode, so the driver will
try to issue the command.

At least until the driver has a proper wrapper for SENSE_PORT, make
sure we disable the command for multi-function devices.

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/main.c