netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: "Feldman, Scott" <scott.feldman@intel.com>, netdev@oss.sgi.com
Subject: Re: Submission #3  for S2io 10GbE driver
Date: Tue, 02 Mar 2004 13:33:07 -0800	[thread overview]
Message-ID: <4044FD93.8030006@candelatech.com> (raw)
In-Reply-To: <4044FABE.9070408@pobox.com>

Jeff Garzik wrote:

> tg3 needs to kfree the skb too, leading to my comment "some existing 
> drivers get this wrong too".  Requeueing the skb only occurs in -some- 
> packet schedulers, not all.  So drivers cannot depend on the net stack 
> doing what you want in all cases.  Conditional correct behavior or 
> leak..  :/

I see lots of hard-start-xmit errors for e1000 and e100 in 2.4.25,
and it's very nice to be able to retry.  Lets fix the broken callers
instead of making the drivers less useful.

You can see this yourself with pktgen.  Here is the code in pktgen
where I see the printouts...if this is my bug, please let me know!

                         spin_lock_bh(&odev->xmit_lock);
                         if (!netif_queue_stopped(odev)) {
                                 if (odev->hard_start_xmit(next->skb, odev)) {
                                         if (net_ratelimit()) {
                                                 printk(KERN_INFO "Hard xmit error\n");
                                         }

Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

  reply	other threads:[~2004-03-02 21:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-02 21:16 Submission #3 for S2io 10GbE driver Feldman, Scott
2004-03-02 21:21 ` Jeff Garzik
2004-03-02 21:33   ` Ben Greear [this message]
2004-03-02 21:38     ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2004-03-02 21:47 Feldman, Scott
2004-03-02 22:21 ` Ben Greear
2004-03-02 13:46 raghavendra.koushik
2004-03-02 18:47 ` Jeff Garzik
2004-03-01 13:05 raghavendra.koushik
2004-03-01 15:24 ` Leonid Grossman
2004-03-01  6:21 raghavendra.koushik
2004-03-01  6:53 ` Jeff Garzik
2004-02-17  0:11 Submission " Christoph Hellwig
2004-02-28 15:08 ` Submission #3 " Leonid Grossman
2004-02-28 20:21   ` Jeff Garzik
2004-03-12 21:55     ` ravinandan arakali
2004-03-13  2:30       ` Jeff Garzik

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=4044FD93.8030006@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=jgarzik@pobox.com \
    --cc=netdev@oss.sgi.com \
    --cc=scott.feldman@intel.com \
    /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).