From: Jarek Poplawski <jarkao2@gmail.com>
To: Michael Breuer <mbreuer@majjas.com>
Cc: David Miller <davem@davemloft.net>,
shemminger@vyatta.com, akpm@linux-foundation.org,
flyboy@gmail.com, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net-2.6 alt.3] af_packet: Don't use skb after dev_queue_xmit()
Date: Mon, 11 Jan 2010 23:48:17 +0100 [thread overview]
Message-ID: <20100111224817.GB3369@del.dom.local> (raw)
In-Reply-To: <4B4BA695.7040803@majjas.com>
On Mon, Jan 11, 2010 at 05:30:45PM -0500, Michael Breuer wrote:
> On 1/11/2010 3:04 AM, Jarek Poplawski wrote:
...
> >----------------> (alternative 3)
> >
> >Subject: af_packet: Don't use skb after dev_queue_xmit()
> >
> >tpacket_snd() can change and kfree an skb after dev_queue_xmit(),
> >which is illegal.
> >
> >With debugging by: Stephen Hemminger<shemminger@vyatta.com>
> >
> >Reported-by: Michael Breuer<mbreuer@majjas.com>
> >Signed-off-by: Jarek Poplawski<jarkao2@gmail.com>
> >
> >Cc: Stephen Hemminger<shemminger@vyatta.com>
> >---
> >
> > net/packet/af_packet.c | 19 ++++++++++++++-----
> > 1 files changed, 14 insertions(+), 5 deletions(-)
...
> Tested by: Michael Breuer
>
> Note: This patch is delivering better ethernet throughput (15-20%)
> and no than the previous two patches. I'm also no longer seeing
> dropped RX packets. Good work!
David, if this patch is acceptable now, please add:
With help from: David S. Miller <davem@davemloft.net>
Tested-by: Michael Breuer<mbreuer@majjas.com>
Thanks everybody,
Jarek P.
next prev parent reply other threads:[~2010-01-11 22:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-09 12:38 [PATCH net-2.6 resent] " Jarek Poplawski
2010-01-10 21:51 ` David Miller
2010-01-10 22:21 ` Jarek Poplawski
2010-01-11 8:04 ` [PATCH net-2.6 alt.3] " Jarek Poplawski
2010-01-11 22:30 ` Michael Breuer
2010-01-11 22:48 ` Jarek Poplawski [this message]
2010-01-11 23:07 ` David Miller
2010-01-11 23:39 ` David Miller
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=20100111224817.GB3369@del.dom.local \
--to=jarkao2@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=flyboy@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbreuer@majjas.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.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
all inboxes | Powered by JetHome®