netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Bug#709616: floods the network with pause packets
       [not found]   ` <51A07081.5010104@debian.org>
@ 2013-05-26  1:54     ` Ben Hutchings
  2013-05-26  9:02       ` Stéphane Glondu
  0 siblings, 1 reply; 6+ messages in thread
From: Ben Hutchings @ 2013-05-26  1:54 UTC (permalink / raw)
  To: Stéphane Glondu, e1000-devel; +Cc: 709616, netdev

[-- Attachment #1: Type: text/plain, Size: 2866 bytes --]

On Sat, 2013-05-25 at 10:04 +0200, Stéphane Glondu wrote:
> Le 24/05/2013 18:07, Ben Hutchings a écrit :
> >> With Linux 3.8, my computer starts (after some time) flooding its
> >> network interface with pause packets, effectively freezing it and
> >> other network-dependent computers connected to the same switch.

This is still the important issue, and regardless of whether pause
frames are being handled properly it sounds like the hardware RX path
may be locking up and that causes it to generate them continuously.  I
don't know how to investigate that, so this message is going to the
e1000e developers.

> > Switches should normally be configured to generate but not respond
> > to pause frames.  I don't know how unmanaged switches are typically
> > configured.  What do ethtool (no options and 'ethtool -a' report for
> > this device?
> 
> The other frozen computers are connected via an unmanaged switch.
> 
> # ethtool eth0
> Settings for eth0:
>         Supported ports: [ TP ]
>         Supported link modes:   10baseT/Half 10baseT/Full
>                                 100baseT/Half 100baseT/Full
>                                 1000baseT/Full
>         Supported pause frame use: No
>         Supports auto-negotiation: Yes
>         Advertised link modes:  10baseT/Half 10baseT/Full
>                                 100baseT/Half 100baseT/Full
>                                 1000baseT/Full
>         Advertised pause frame use: No
>         Advertised auto-negotiation: Yes

I forgot, e1000e still doesn't report autoneg state completely through
ethtool.  How about 'mii-tool -v eth0'?

>         Speed: 100Mb/s
>         Duplex: Full
>         Port: Twisted Pair
>         PHYAD: 2
>         Transceiver: internal
>         Auto-negotiation: on
>         MDI-X: off
>         Supports Wake-on: pumbg
>         Wake-on: g
>         Current message level: 0x00000001 (1)
>                                drv
>         Link detected: yes
> # ethtool -a eth0
> Pause parameters for eth0:
> Autonegotiate:  on
> RX:             on
> TX:             on
> 
> >> When I connect directly my laptop to the computer, and run tcpdump on
> >> the laptop, I see:
> >> [...]
> > There seems to be a bug in your laptop's network driver, because pause
> > frames should not be passed to the kernel.  (Usually they are
> > discarded by the MAC.)
> 
> Even in promiscuous mode?
[...]

MAC control frames, which include pause frames, should never be passed
to the host (specified in IEEE 802.3 clause 31.3).  In case the hardware
still delivers them to the host, it's the driver's responsibility to
discard them.  This is the same as for frames that have an error at the
Ethernet level, e.g. bad CRC.

Ben.

-- 
Ben Hutchings
Computers are not intelligent.	They only think they are.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Bug#709616: floods the network with pause packets
  2013-05-26  1:54     ` Bug#709616: floods the network with pause packets Ben Hutchings
@ 2013-05-26  9:02       ` Stéphane Glondu
  2013-05-26 16:10         ` Ben Hutchings
  0 siblings, 1 reply; 6+ messages in thread
From: Stéphane Glondu @ 2013-05-26  9:02 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: 709616, e1000-devel, netdev

Le 26/05/2013 03:54, Ben Hutchings a écrit :
> I forgot, e1000e still doesn't report autoneg state completely through
> ethtool.  How about 'mii-tool -v eth0'?

# mii-tool -v eth0
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 100baseTx-FD flow-control, link ok
  product info: vendor 00:55:00, model 9 rev 0
  basic mode:   autonegotiation enabled
  basic status: autonegotiation complete, link ok
  capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
  advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
  link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD
10baseT-HD flow-control


I am not sure about who to put in CC of this mail; I've just put the
Debian bug.


Cheers,

-- 
Stéphane

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

* Re: Bug#709616: floods the network with pause packets
  2013-05-26  9:02       ` Stéphane Glondu
@ 2013-05-26 16:10         ` Ben Hutchings
  2013-05-30  9:21           ` Stéphane Glondu
  0 siblings, 1 reply; 6+ messages in thread
From: Ben Hutchings @ 2013-05-26 16:10 UTC (permalink / raw)
  To: Stéphane Glondu; +Cc: e1000-devel, netdev, 709616


[-- Attachment #1.1: Type: text/plain, Size: 1233 bytes --]

On Sun, 2013-05-26 at 11:02 +0200, Stéphane Glondu wrote:
> Le 26/05/2013 03:54, Ben Hutchings a écrit :
> > I forgot, e1000e still doesn't report autoneg state completely through
> > ethtool.  How about 'mii-tool -v eth0'?
> 
> # mii-tool -v eth0
> SIOCGMIIREG on eth0 failed: Input/output error
> SIOCGMIIREG on eth0 failed: Input/output error
> eth0: negotiated 100baseTx-FD flow-control, link ok
>   product info: vendor 00:55:00, model 9 rev 0
>   basic mode:   autonegotiation enabled
>   basic status: autonegotiation complete, link ok
>   capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
>   advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
>   link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD
> 10baseT-HD flow-control

OK, so the switch is indeed defective: it says it can handle pause
frames, but it can't.

Could you check whether the switch is also sending pause frames back to
the port that's generating them?

> I am not sure about who to put in CC of this mail; I've just put the
> Debian bug.

You replied-to-all, which is correct.

Ben.

-- 
Ben Hutchings
Computers are not intelligent.	They only think they are.

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

[-- Attachment #2: Type: text/plain, Size: 421 bytes --]

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

[-- Attachment #3: Type: text/plain, Size: 257 bytes --]

_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired

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

* Bug#709616: floods the network with pause packets
  2013-05-26 16:10         ` Ben Hutchings
@ 2013-05-30  9:21           ` Stéphane Glondu
  2013-05-30 12:58             ` Ben Hutchings
  0 siblings, 1 reply; 6+ messages in thread
From: Stéphane Glondu @ 2013-05-30  9:21 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: 709616, e1000-devel, netdev

Le 26/05/2013 18:10, Ben Hutchings a écrit :
> OK, so the switch is indeed defective: it says it can handle pause
> frames, but it can't.

The problem happened on (at least) two different switches from different
manufacturers (Transtec and Netgear).

FWIW, the problem just happened on another machine (with same hardware)
this morning. It is running Ubuntu with kernel 3.5.0-31-generic.

> Could you check whether the switch is also sending pause frames back to
> the port that's generating them?

How exactly do I do that? Is disconnecting the faulty computer and
connecting my laptop in its place right?


Cheers,

-- 
Stéphane


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

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

* Re: Bug#709616: floods the network with pause packets
  2013-05-30  9:21           ` Stéphane Glondu
@ 2013-05-30 12:58             ` Ben Hutchings
  2013-05-30 13:07               ` Stéphane Glondu
  0 siblings, 1 reply; 6+ messages in thread
From: Ben Hutchings @ 2013-05-30 12:58 UTC (permalink / raw)
  To: Stéphane Glondu; +Cc: 709616, e1000-devel, netdev

[-- Attachment #1: Type: text/plain, Size: 842 bytes --]

On Thu, 2013-05-30 at 11:21 +0200, Stéphane Glondu wrote:
> Le 26/05/2013 18:10, Ben Hutchings a écrit :
> > OK, so the switch is indeed defective: it says it can handle pause
> > frames, but it can't.
> 
> The problem happened on (at least) two different switches from different
> manufacturers (Transtec and Netgear).
> 
> FWIW, the problem just happened on another machine (with same hardware)
> this morning. It is running Ubuntu with kernel 3.5.0-31-generic.
> 
> > Could you check whether the switch is also sending pause frames back to
> > the port that's generating them?
> 
> How exactly do I do that? Is disconnecting the faulty computer and
> connecting my laptop in its place right?

ethtool -S eth0 | grep flow_control

Ben.

-- 
Ben Hutchings
If at first you don't succeed, you're doing about average.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Re: Bug#709616: floods the network with pause packets
  2013-05-30 12:58             ` Ben Hutchings
@ 2013-05-30 13:07               ` Stéphane Glondu
  0 siblings, 0 replies; 6+ messages in thread
From: Stéphane Glondu @ 2013-05-30 13:07 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: 709616, e1000-devel, netdev

Le 30/05/2013 14:58, Ben Hutchings a écrit :
>>> Could you check whether the switch is also sending pause frames back to
>>> the port that's generating them?
>>
>> How exactly do I do that? Is disconnecting the faulty computer and
>> connecting my laptop in its place right?
> 
> ethtool -S eth0 | grep flow_control

     rx_flow_control_xon: 318
     rx_flow_control_xoff: 318
     tx_flow_control_xon: 0
     tx_flow_control_xoff: 0

-- 
Stéphane

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

end of thread, other threads:[~2013-05-30 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20130524124059.12781.51344.reportbug@wencory.loria.fr>
     [not found] ` <20130524160727.GM4752@decadent.org.uk>
     [not found]   ` <51A07081.5010104@debian.org>
2013-05-26  1:54     ` Bug#709616: floods the network with pause packets Ben Hutchings
2013-05-26  9:02       ` Stéphane Glondu
2013-05-26 16:10         ` Ben Hutchings
2013-05-30  9:21           ` Stéphane Glondu
2013-05-30 12:58             ` Ben Hutchings
2013-05-30 13:07               ` Stéphane Glondu

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).