net/mlx5e: Fix ethtool pause support and advertise reporting
authorGal Pressman <galp@mellanox.com>
Wed, 19 Apr 2017 11:35:15 +0000 (14:35 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 14 May 2017 10:33:45 +0000 (13:33 +0300)
commite3c19503712d6360239b19c14cded56dd63c40d7
tree7eff3aa8520d6a28787229c0d95ad5dc8a8d9e31
parentb383b544f2666d67446b951a9a97af239dafed5d
net/mlx5e: Fix ethtool pause support and advertise reporting

Pause bit should set when RX pause is on, not TX pause.
Also, setting Asym_Pause is incorrect, and should be turned off.

Fixes: 665bc53969d7 ("net/mlx5e: Use new ethtool get/set link ksettings API")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c