]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix info returned when querying IBoE ports
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 11 Jan 2012 17:00:29 +0000 (19:00 +0200)
committerRoland Dreier <roland@purestorage.com>
Mon, 12 Mar 2012 23:24:59 +0000 (16:24 -0700)
commit2a61c03c63ff1412829a905965ff17e9e0f26a6c
tree8dbc6a8fe8e2b6853f817b029d34dbcf856d0684
parent8a52e02ecee9ee8bf160d39b1e7834e3e94d5ebf
IB/mlx4: Fix info returned when querying IBoE ports

To issue a port query, use the QUERY_(Ethernet)_PORT command instead
of the MAD_IFC command, since MAD_IFC attempts to query the firmware
IB SMA, which is irrelevant for IBoE ports.

This allows us to handle both 10Gb/s and 40Gb/s rates (e.g in sysfs),
using QDR speed (10Gb/s) and width of 1X or 4X.

Signed-off-by: Dotan Barak <dotanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c