mlx4_core: Add extended port capabilities support
authorMarcel Apfelbaum <marcela@dev.mellanox.co.il>
Mon, 24 Oct 2011 09:02:34 +0000 (11:02 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 28 Oct 2011 18:33:38 +0000 (11:33 -0700)
commit97285b78174423e5576b2e06aa45f64df009da5b
treed6f44a503b98f385e22fc9243d1abaf98d68947d
parente36fb88a9a0fb8ac4b87c8ac709214a408de6d97
mlx4_core: Add extended port capabilities support

An Extended Port Info packet is sent to each hw port during HCA init.
If it returns without error, we assume the port supports extended port
capabilities.

Signed-off-by: Marcel Apfelbaum <marcela@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/port.c
include/linux/mlx4/device.h