netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: hadi@cyberus.ca
Cc: ak@suse.de, herbert@gondor.apana.org.au, netdev@oss.sgi.com
Subject: Re: [PATCH] NETIF_F_LLTX for devices 2
Date: Wed, 8 Sep 2004 13:47:13 -0700	[thread overview]
Message-ID: <20040908134713.1bcd46d3.davem@davemloft.net> (raw)
In-Reply-To: <1094629677.1089.155.camel@jzny.localdomain>

On 08 Sep 2004 03:47:57 -0400
jamal <hadi@cyberus.ca> wrote:

> On Wed, 2004-09-08 at 03:24, Andi Kleen wrote:
> > On Wed, Sep 08, 2004 at 05:07:56PM +1000, Herbert Xu wrote:
> > > Andi Kleen <ak@suse.de> wrote:
> > > >
> > > >> 1: means packet was not put on the ring. i.e if you return
> > > >> 1, the toplayer will retry later with the same skb. 
> > > >> [of course If you stash it on the ring, the danger is tx complete will
> > > >> try to free it later while the toplayer code is still referencing it. A
> > > >> good oops].
> > > > 
> > > > Actually when you return 1 then the kernel prints an ugly 
> > > > message and it is considered a bug.  Here -1 is legal.
> 
> Is this an effect of  your code? This is not so in existing code.

We are merely moving the sch_generic.c locking logic into the
drivers.  The behavior is entirely equivalent except that one
level of unnecessary locking has been removed.

I think his change is valid, will not break existing drivers (as
you mentioned as well Jamal), and works well for the cases he has
shown patches of.  So I'm going to apply his patch.

BTW, if we are really concerned about some existing driver returning
-1 from hard_start_xmit() without the new feature flag being enabled,
we can test for that and log a debugging message if it happens.

  reply	other threads:[~2004-09-08 20:47 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07 12:05 [PATCH] NETIF_F_LLTX for devices 2 Andi Kleen
2004-09-07 21:39 ` David S. Miller
2004-09-07 21:53 ` jamal
2004-09-08  6:51   ` Andi Kleen
2004-09-08  7:07     ` Herbert Xu
2004-09-08  7:24       ` Andi Kleen
2004-09-08  7:47         ` jamal
2004-09-08 20:47           ` David S. Miller [this message]
2004-09-10 13:33             ` jamal
2004-09-10 23:02               ` David S. Miller
2004-09-11 14:21               ` Andi Kleen
2004-09-11 20:15                 ` jamal
2004-09-12  0:45                   ` David S. Miller
2004-09-12  9:57                     ` Jeff Garzik
2004-09-12 10:01                     ` Jeff Garzik
2004-09-12 10:25                       ` Andi Kleen
2004-09-12 11:03                         ` Francois Romieu
2004-09-13  0:13                           ` David S. Miller
2004-09-12 16:16                         ` Jeff Garzik
2004-09-12 17:34                           ` jamal
2004-09-13  0:06                             ` Jeff Garzik
2004-09-13  0:10                             ` David S. Miller
2004-09-13  2:52                             ` Andrew Grover
2004-09-13  6:59                           ` Andi Kleen
2004-09-13 16:10                             ` Jeff Garzik
2004-09-13  0:12                         ` 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=20040908134713.1bcd46d3.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ak@suse.de \
    --cc=hadi@cyberus.ca \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@oss.sgi.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).