From: Eric Dumazet <eric.dumazet@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: jarkao2@gmail.com, xiaosuo@gmail.com, socketcan@hartkopp.net,
mst@redhat.com, netdev@vger.kernel.org
Subject: Re: [PATCH v3] net: af_packet: don't call tpacket_destruct_skb() until the skb is sent out
Date: Mon, 27 Sep 2010 07:40:01 +0200 [thread overview]
Message-ID: <1285566001.2357.544.camel@edumazet-laptop> (raw)
In-Reply-To: <20100926.182548.179922569.davem@davemloft.net>
Le dimanche 26 septembre 2010 à 18:25 -0700, David Miller a écrit :
> From: Eric Dumazet <eric.dumazet@gmail.com>
> Date: Fri, 24 Sep 2010 09:01:00 +0200
>
> > af_packet (tx with mmap) is broken. I wonder who really uses it ?
>
> I suspect now that af_packet supports VNET headers on transmit,
> there are some things using this tx+mmap thing for sure.
>
> > To properly cope with paged skbs, it should not try to fit several
> > packets per page.
> >
> > The mmap api should change so that one mmaped page belongs to at most
> > one skb, or else we need invasive changes in net/core
> >
> > This probably makes this stuff less interesting, unless the need is to
> > send big packets. In this case, why splice was not used instead of
> > custom mmap ?
>
> I don't really see what the big issue is.
>
> When the data destructor runs it means that packet's part of the pages
> are available for reuse for the tx mmap client. And if I read it
> correctly, that's exactly what tpacket_destruct_skb() is in fact doing.
>
> There seems to be no conflict with that rule and reusing a page for
> multiple packets.
I was wondering if somewhere we transfert a frag from one skb1 to
another skb2, and eventually free skb1.
I just check tcp collapse and found it was not coping with frags, yet.
next prev parent reply other threads:[~2010-09-27 5:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 10:15 [PATCH v3] net: af_packet: don't call tpacket_destruct_skb() until the skb is sent out Changli Gao
2010-09-23 12:29 ` Eric Dumazet
2010-09-23 14:17 ` Changli Gao
2010-09-23 14:41 ` Eric Dumazet
2010-09-24 6:36 ` Jarek Poplawski
2010-09-24 7:01 ` Eric Dumazet
2010-09-27 1:25 ` David Miller
2010-09-27 5:40 ` Eric Dumazet [this message]
2010-09-27 1:22 ` David Miller
2010-09-27 5:30 ` Jarek Poplawski
2010-09-27 6:56 ` David Miller
2010-09-27 1:24 ` Changli Gao
2010-09-27 5:46 ` 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=1285566001.2357.544.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=jarkao2@gmail.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=socketcan@hartkopp.net \
--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