netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Changli Gao" <xiaosuo@gmail.com>,
	"Paweł Staszewski" <pstaszewski@itcare.pl>,
	"David S. Miller" <davem@davemloft.net>,
	"Linux Network Development list" <netdev@vger.kernel.org>
Subject: Re: Kernel panic eth2 mirred redirect to ifb0
Date: Mon, 20 Dec 2010 11:11:41 +0000	[thread overview]
Message-ID: <20101220111141.GC7977@ff.dom.local> (raw)
In-Reply-To: <1292841671.2800.11.camel@edumazet-laptop>

On Mon, Dec 20, 2010 at 11:41:11AM +0100, Eric Dumazet wrote:
> Le lundi 20 décembre 2010 ?? 10:32 +0000, Jarek Poplawski a écrit :
> > On Mon, Dec 20, 2010 at 10:21:25AM +0100, Eric Dumazet wrote:
> > > Le lundi 20 décembre 2010 ?? 17:11 +0800, Changli Gao a écrit :
> > > > Yes, you are right. I just wonder where shared skbs are allowed. Is
> > > > there any rule?
> > > > 
> > > 
> > > Shared skbs are allowed for sure (pktgen is a provider of such skbs).
> > 
> > But pktgen doesn't use common dev_queue_xmit() path. It looks like
> > some places checking segmentation call pskb_expand_head() assuming skb
> > isn't shared. Btw, it seems ifb should have GSO features similarly to
> > loopback. Anyway, until all this is verified, IMHO we should revert
> > Changli's mirred patch in stable.
> > 
> 
> I thought Changli question was : is a skb given to a device
> ndo_start_xmit() handler is allowed to be shared ;)
> 
> I believe Changli patch should be reverted, because not doing a
> skb_clone() should be known by caller.
> 
> To avoid the skb_clone(), we must tell caller what we did, so that
> caller dont even try to reuse skb (even freeing it)

To tell the truth, Changli could assume we don't need to tell anything,
because this mirred skb is almost not shared (except the refcount ;-).

Jarek P.

  reply	other threads:[~2010-12-20 11:11 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-19 11:35 Kernel panic eth2 mirred redirect to ifb0 Paweł Staszewski
2010-12-19 11:39 ` Paweł Staszewski
2010-12-19 15:43 ` Eric Dumazet
2010-12-19 16:09   ` Paweł Staszewski
2010-12-19 16:22     ` Changli Gao
2010-12-19 20:34       ` Paweł Staszewski
2010-12-19 22:15         ` Jarek Poplawski
2010-12-19 22:21           ` Jarek Poplawski
2010-12-19 22:26             ` Jarek Poplawski
2010-12-20  8:01               ` Paweł Staszewski
2010-12-20  8:06                 ` Eric Dumazet
2010-12-20  9:13                   ` Paweł Staszewski
2010-12-20  8:56                 ` Changli Gao
2010-12-20  9:08                   ` Eric Dumazet
2010-12-20  9:11                     ` Changli Gao
2010-12-20  9:21                       ` Eric Dumazet
2010-12-20 10:32                         ` Jarek Poplawski
2010-12-20 10:41                           ` Eric Dumazet
2010-12-20 11:11                             ` Jarek Poplawski [this message]
2010-12-20 11:58                               ` Jarek Poplawski
2010-12-20 12:07                                 ` Paweł Staszewski
2010-12-20 12:22                                   ` Jarek Poplawski
2010-12-20 12:45                                     ` Eric Dumazet
2010-12-20 12:54                                       ` Eric Dumazet
2010-12-20 13:02                                         ` Jarek Poplawski
2010-12-20 14:05                                           ` Changli Gao
2010-12-20 14:25                                             ` [PATCH net-next-2.6] ifb: add performance flags to dev->features Eric Dumazet
2010-12-20 14:43                                               ` Changli Gao
2010-12-28 21:50                                               ` David Miller
2010-12-28 22:36                                                 ` Eric Dumazet
2010-12-28 23:07                                                   ` Jarek Poplawski
2011-01-02 20:24                                                     ` [PATCH v2 net-next-2.6] ifb: add performance flags Eric Dumazet
2011-01-03 19:37                                                       ` Jarek Poplawski
2011-01-03 19:40                                                         ` David Miller
2011-01-03 20:35                                                           ` Eric Dumazet
2011-01-03 20:40                                                             ` David Miller
2010-12-20 12:30                                   ` Kernel panic eth2 mirred redirect to ifb0 Changli Gao
2010-12-20 13:37                                     ` Jarek Poplawski

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=20101220111141.GC7977@ff.dom.local \
    --to=jarkao2@gmail.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pstaszewski@itcare.pl \
    --cc=xiaosuo@gmail.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).