]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Use PTYS register to query ethtool settings
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 27 Oct 2014 09:37:40 +0000 (11:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2014 21:18:00 +0000 (17:18 -0400)
commit191c2d8dbf6dd129e8cee7f91c8e1645f439171a
tree7ec39fbec5cc5a01e940f9bfd57de61eeff91806
parent0761d0d9f1d17b338011e05ea20ccdd94ff4b01b
net/mlx4_en: Use PTYS register to query ethtool settings

- If dev cap MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL is ON, query PTYS register to fill ethtool settings.
else use default values.
- Use autoneg port cap and dev backplane autoneg cap to reprort autoneg interface capbilities.
- Fix typo in mlx4_en_port_state struct field (transciver to transceiver).

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/en_port.c
drivers/net/ethernet/mellanox/mlx4/en_port.h
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h