summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2011-12-19 04:00:34 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-19 14:57:07 -0500
commit8d0fc7b61191c9433a4f738987b89e1d962eb637 (patch)
treef538c085fefdeddd321a66ed0fb54a0cd86cbf34 /include/linux/mlx4
parent58a60168d12c4e5be21c29420a3de4a41ef3470f (diff)
downloadlinux-stable-8d0fc7b61191c9433a4f738987b89e1d962eb637.tar.gz
linux-stable-8d0fc7b61191c9433a4f738987b89e1d962eb637.tar.bz2
linux-stable-8d0fc7b61191c9433a4f738987b89e1d962eb637.zip
mlx4_core: Changing link sensing logic
New FW can give clues to driver regarding default port type and whether or not we should default to link sensing on the port. 2 bits are added to QUERY_PORT command: 1. suggested_type: This bit gives a hint whether the default port type should be IB or Ethernet. The driver will use this hint in case the user didn't specify explicitly the link layer type he wants to set. 2. default_sense: If this bit is set, we would sense the port type on start-up and default the port to link sensing Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index b06a44ba1565..5c4fe8e5bfe5 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -303,6 +303,8 @@ struct mlx4_caps {
int log_num_prios;
enum mlx4_port_type port_type[MLX4_MAX_PORTS + 1];
u8 supported_type[MLX4_MAX_PORTS + 1];
+ u8 suggested_type[MLX4_MAX_PORTS + 1];
+ u8 default_sense[MLX4_MAX_PORTS + 1];
u32 port_mask[MLX4_MAX_PORTS + 1];
enum mlx4_port_type possible_type[MLX4_MAX_PORTS + 1];
u32 max_counters;