]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Changing link sensing logic
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 19 Dec 2011 04:00:34 +0000 (04:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2011 19:57:07 +0000 (14:57 -0500)
commitebabc96679a07c33149f0d0f27938e0a08977d52
treef538c085fefdeddd321a66ed0fb54a0cd86cbf34
parent804a9f05530022d621c077cac72c4791aeaec2a6
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>
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h