netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Linus Torvalds <torvalds@osdl.org>,
	"David S. Miller" <davem@davemloft.net>
Cc: Jeff Garzik <jeff@garzik.org>, netdev@vger.kernel.org
Subject: netpoll causes malformed protocol message
Date: Wed, 18 Oct 2006 15:49:15 -0700	[thread overview]
Message-ID: <20061018154915.324900d6@freekitty> (raw)
In-Reply-To: <Pine.LNX.4.64.0610181501490.3962@g5.osdl.org>

Now that I know what this is, perhaps others should know.

> Linus Torvalds <torvalds@osdl.org> wrote:
>   
> > 
> > Since I've been re-testing the Apple Intel Mac Mini suspend/resume due to 
> > a USB problem, I thought I might as well see if this rings any bells..
> > 
> > On resume, networking does actually eventually work, but it takes a while 
> > before it gets going. The dmesg for the resume shows:
> > 
> > 	sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
> > 	protocol 0000 is buggy, dev eth0
> > 	protocol 0000 is buggy, dev eth0  
> 
> 


The packets created by netpoll trigger the check for bogus protocol
in net/core/dev.c if it gets busy enough to actually use the netpoll
tx queue.

I'll whip a fix, the skb should be setup better and it shouldn't call
different xmit paths for the queued/non-queued case. Follow on patch
to replace the roll your own skb queue's with the already there sk_buff_head
routines. Given the normal case is lots of small writes, probably
better to just have a character queue to cause coalescing.

The netpoll code is a step child it looks like and ignores using
standard code when it should.

       reply	other threads:[~2006-10-18 22:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.64.0610152043060.3962@g5.osdl.org>
     [not found] ` <20061017170147.08edc149@freekitty>
     [not found]   ` <Pine.LNX.4.64.0610171712050.3962@g5.osdl.org>
     [not found]     ` <20061017190321.0414fb38@dads-laptop>
     [not found]       ` <Pine.LNX.4.64.0610172129320.3962@g5.osdl.org>
     [not found]         ` <20061017214830.07cb89bb@dads-laptop>
     [not found]           ` <Pine.LNX.4.64.0610180932500.3962@g5.osdl.org>
     [not found]             ` <Pine.LNX.4.64.0610181002390.3962@g5.osdl.org>
     [not found]               ` <Pine.LNX.4.64.0610181014230.3962@g5.osdl.org>
     [not found]                 ` <20061018125629.5f480ff7@dxpl.pdx.osdl.net>
     [not found]                   ` <Pine.LNX.4.64.0610181310040.3962@g5.osdl.org>
     [not found]                     ` <20061018144553.6a40e0a4@dxpl.pdx.osdl.net>
     [not found]                       ` <Pine.LNX.4.64.0610181501490.3962@g5.osdl.org>
2006-10-18 22:49                         ` Stephen Hemminger [this message]
2006-10-19  3:04                           ` [RFT] netpoll: fully initialize skb Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061018154915.324900d6@freekitty \
    --to=shemminger@osdl.org \
    --cc=davem@davemloft.net \
    --cc=jeff@garzik.org \
    --cc=netdev@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).