aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcela@dev.mellanox.co.il>2011-10-24 05:02:34 -0400
committerRoland Dreier <roland@purestorage.com>2011-10-28 14:33:38 -0400
commit97285b78174423e5576b2e06aa45f64df009da5b (patch)
treed6f44a503b98f385e22fc9243d1abaf98d68947d /include/linux/mlx4
parente36fb88a9a0fb8ac4b87c8ac709214a408de6d97 (diff)
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>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 53ef894bfa05..ce9ef491addf 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -82,6 +82,12 @@ enum {
82 MLX4_DEV_CAP_FLAG_COUNTERS = 1LL << 48 82 MLX4_DEV_CAP_FLAG_COUNTERS = 1LL << 48
83}; 83};
84 84
85#define MLX4_ATTR_EXTENDED_PORT_INFO cpu_to_be16(0xff90)
86
87enum {
88 MLX_EXT_PORT_CAP_FLAG_EXTENDED_PORT_INFO = 1 << 0
89};
90
85enum { 91enum {
86 MLX4_BMME_FLAG_LOCAL_INV = 1 << 6, 92 MLX4_BMME_FLAG_LOCAL_INV = 1 << 6,
87 MLX4_BMME_FLAG_REMOTE_INV = 1 << 7, 93 MLX4_BMME_FLAG_REMOTE_INV = 1 << 7,
@@ -276,6 +282,7 @@ struct mlx4_caps {
276 u32 port_mask; 282 u32 port_mask;
277 enum mlx4_port_type possible_type[MLX4_MAX_PORTS + 1]; 283 enum mlx4_port_type possible_type[MLX4_MAX_PORTS + 1];
278 u32 max_counters; 284 u32 max_counters;
285 u8 ext_port_cap[MLX4_MAX_PORTS + 1];
279}; 286};
280 287
281struct mlx4_buf_list { 288struct mlx4_buf_list {