mlx4_core: Get rid of redundant ext_port_cap flags
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 6 Mar 2012 13:50:50 +0000 (15:50 +0200)
committerRoland Dreier <roland@purestorage.com>
Wed, 7 Mar 2012 01:25:18 +0000 (17:25 -0800)
commit8154c07fe14e387c5a7c7f2eb70534813634e45e
tree04a62c867cb09976b415e8d6e04d41f0c2e793e1
parent2e96691c31ecf749f48aa94ea837b95dd656f5c2
mlx4_core: Get rid of redundant ext_port_cap flags

While doing the work for commit a6f7feae6d ("IB/mlx4: pass SMP
vendor-specific attribute MADs to firmware") we realized that the
firmware would respond on all sorts of vendor-specific MADs.
Therefore commit 97285b7817 ("mlx4_core: Add extended port
capabilities support") adds redundant code into the driver, since
there's no real reaon to maintain the extended capabilities of the
port, as they can be queried on demand (e.g the FDR10 capability).

This patch reverts commit 97285b7817 and removes the check for
extended caps from the mlx4_ib driver port query flow.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/port.c
include/linux/mlx4/device.h