* [PATCH net] net/mlx4_en: do not ignore autoneg in mlx4_en_set_pauseparam()
@ 2014-09-08 16:46 Ivan Vecera
2014-09-08 22:57 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Vecera @ 2014-09-08 16:46 UTC (permalink / raw)
To: netdev; +Cc: Amir Vadai
The driver does not support pause autonegotiation so it should return
-EINVAL when the function is called with non-zero autoneg.
Cc: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
index e22f24f..35ff292 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
@@ -487,6 +487,9 @@ static int mlx4_en_set_pauseparam(struct net_device *dev,
struct mlx4_en_dev *mdev = priv->mdev;
int err;
+ if (pause->autoneg)
+ return -EINVAL;
+
priv->prof->tx_pause = pause->tx_pause != 0;
priv->prof->rx_pause = pause->rx_pause != 0;
err = mlx4_SET_PORT_general(mdev->dev, priv->port,
--
1.8.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net/mlx4_en: do not ignore autoneg in mlx4_en_set_pauseparam()
2014-09-08 16:46 [PATCH net] net/mlx4_en: do not ignore autoneg in mlx4_en_set_pauseparam() Ivan Vecera
@ 2014-09-08 22:57 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-09-08 22:57 UTC (permalink / raw)
To: ivecera; +Cc: netdev, amirv
From: Ivan Vecera <ivecera@redhat.com>
Date: Mon, 8 Sep 2014 18:46:53 +0200
> The driver does not support pause autonegotiation so it should return
> -EINVAL when the function is called with non-zero autoneg.
>
> Cc: Amir Vadai <amirv@mellanox.com>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Applied, thanks Ivan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-08 22:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 16:46 [PATCH net] net/mlx4_en: do not ignore autoneg in mlx4_en_set_pauseparam() Ivan Vecera
2014-09-08 22:57 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.