netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-2.6 PATCH] ixgbe: cleanup ethtool autoneg input
@ 2010-04-27 11:25 Jeff Kirsher
  2010-04-27 16:56 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2010-04-27 11:25 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Don Skidmore, Jeff Kirsher

From: Don Skidmore <donald.c.skidmore@intel.com>

The way we were setting autoneg via ethtool was inconstant with that
of our other drivers.  It will change the following:

If autoneg is off:
>ethtool -a eth0
Pause parameters for eth0:

Autonegotiate:  off
RX:             off
TX:             off

Before:
>ethtool -A eth0 autoneg on
>ethtool -a eth0
Pause parameters for eth0:

Autonegotiate:  off
RX:             off
TX:             off

Now:
>ethtool -A eth0 autoneg on
>ethtool -a eth0
Pause parameters for eth0:

Autonegotiate:  on
RX:             on
TX:             on

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/ixgbe/ixgbe_ethtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c
index 8f461d5..7b391f9 100644
--- a/drivers/net/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ixgbe/ixgbe_ethtool.c
@@ -365,7 +365,7 @@ static int ixgbe_set_pauseparam(struct net_device *netdev,
 	else
 		fc.disable_fc_autoneg = false;
 
-	if (pause->rx_pause && pause->tx_pause)
+	if ((pause->rx_pause && pause->tx_pause) || pause->autoneg)
 		fc.requested_mode = ixgbe_fc_full;
 	else if (pause->rx_pause && !pause->tx_pause)
 		fc.requested_mode = ixgbe_fc_rx_pause;


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [net-2.6 PATCH] ixgbe: cleanup ethtool autoneg input
  2010-04-27 11:25 [net-2.6 PATCH] ixgbe: cleanup ethtool autoneg input Jeff Kirsher
@ 2010-04-27 16:56 ` David Miller
  2010-04-27 20:05   ` Jeff Kirsher
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2010-04-27 16:56 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, donald.c.skidmore


This is also not appropriate for net-2.6, it doesn't fix a
regression in the regression list and it doesn't fix a catastropic
crash or failure.

You really have to be kidding me if you thing a patch like this
is fine this late in the -RC series.

You also aren't even numbering your patches, which is quite a
transgression when a submission of a set of patches all to the same
driver and/or files.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-2.6 PATCH] ixgbe: cleanup ethtool autoneg input
  2010-04-27 16:56 ` David Miller
@ 2010-04-27 20:05   ` Jeff Kirsher
  2010-04-27 20:32     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2010-04-27 20:05 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, gospo, donald.c.skidmore

On Tue, Apr 27, 2010 at 09:56, David Miller <davem@davemloft.net> wrote:
>
> This is also not appropriate for net-2.6, it doesn't fix a
> regression in the regression list and it doesn't fix a catastropic
> crash or failure.
>
> You really have to be kidding me if you thing a patch like this
> is fine this late in the -RC series.
>
> You also aren't even numbering your patches, which is quite a
> transgression when a submission of a set of patches all to the same
> driver and/or files.
> --

My apologies.  My reasoning for not numbering them was that the
patches were not related and not dependent upon each other.

As far as sending the the three patches un-acceptable patches this
late in the -rc series, that was poor judgement on my part, sorry.

-- 
Cheers,
Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-2.6 PATCH] ixgbe: cleanup ethtool autoneg input
  2010-04-27 20:05   ` Jeff Kirsher
@ 2010-04-27 20:32     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2010-04-27 20:32 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: netdev, gospo, donald.c.skidmore

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 27 Apr 2010 13:05:25 -0700

> As far as sending the the three patches un-acceptable patches this
> late in the -rc series, that was poor judgement on my part, sorry.

No worries, I just pushed out the net-next-2.6 patches you sent to me
so please respin these patches originally targetted to net-2.6 so
I can apply them to net-next-2.6

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-27 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27 11:25 [net-2.6 PATCH] ixgbe: cleanup ethtool autoneg input Jeff Kirsher
2010-04-27 16:56 ` David Miller
2010-04-27 20:05   ` Jeff Kirsher
2010-04-27 20:32     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).