* [PATCH 2/2] be2net: fix for default setting of pause auto-negotiation
@ 2009-04-13 8:17 Ajit Khaparde
2009-04-13 22:40 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ajit Khaparde @ 2009-04-13 8:17 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Ajit Khaparde
Hi,
This patch fixes the default value of pause auto-negotiation supported by
PCS.
Thanks
Ajit
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
----
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index 04f4b73..9592f22 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -319,7 +319,7 @@ be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd)
be_cmd_get_flow_control(&adapter->ctrl, &ecmd->tx_pause,
&ecmd->rx_pause);
- ecmd->autoneg = AUTONEG_ENABLE;
+ ecmd->autoneg = 0;
}
static int
@@ -328,7 +328,7 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd)
struct be_adapter *adapter = netdev_priv(netdev);
int status;
- if (ecmd->autoneg != AUTONEG_ENABLE)
+ if (ecmd->autoneg != 0)
return -EINVAL;
status = be_cmd_set_flow_control(&adapter->ctrl, ecmd->tx_pause,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] be2net: fix for default setting of pause auto-negotiation
2009-04-13 8:17 [PATCH 2/2] be2net: fix for default setting of pause auto-negotiation Ajit Khaparde
@ 2009-04-13 22:40 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-04-13 22:40 UTC (permalink / raw)
To: ajitk; +Cc: netdev
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Mon, 13 Apr 2009 13:47:06 +0530
> This patch fixes the default value of pause auto-negotiation supported by
> PCS.
>
> Thanks
> Ajit
>
>
[ Why so many spaces? Please make your email more tidy, some
people try to read emails using small screens... ]
>
>
> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-13 22:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-13 8:17 [PATCH 2/2] be2net: fix for default setting of pause auto-negotiation Ajit Khaparde
2009-04-13 22:40 ` 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.