]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Report correct auto negotiation and allow toggling
authorGal Pressman <galp@mellanox.com>
Thu, 23 Jun 2016 14:02:46 +0000 (17:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jun 2016 08:10:41 +0000 (04:10 -0400)
commit0b04426288219ce12db1f7a95a152f95c3c160c0
treee0c22a7a2cf3caa02e2b9d6a73e688fe3db7e268
parente2cd5d82366f235de1c259c1c1379a701af650c9
net/mlx5e: Report correct auto negotiation and allow toggling

Previous to this patch auto negotiation was reported off although it was
on by default in hardware. This patch reports the correct information to
ethtool and allows the user to toggle it on/off.

Added another parameter to set port proto function in order to pass
the auto negotiation field to the hardware.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/port.h