All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>,
	Florian Westphal <fw@strlen.de>,
	Netfilter Development <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH libnetfilter_queue v3 1-5/5] src: Speed-up
Date: Thu, 20 Jan 2022 13:04:58 +0100	[thread overview]
Message-ID: <20220120120458.GF31905@breakpoint.cc> (raw)
In-Reply-To: <YejdVZaoUz+t1qRU@slk1.local.net>

Duncan Roe <duncan_roe@optusnet.com.au> wrote:
> On Tue, Jan 18, 2022 at 02:11:43AM +0100, Pablo Neira Ayuso wrote:
> >
> > This patch have a number of showstoppers such as exposing structure
> > layout on the header files.
> >
> That's only in patch 5. You could apply 1-4. There are actually no other
> showstoppers, right?

Regarding patch 5, I think its ok except the pkt_buff layout freeze.

From a quick glance, there is no assumption that the data area resides
after the pktbuff head, so it should be possible to keep pkt_buff
private, allocate an empty packet and then associate a new buffer with
it.

I agree the memcpy needs to go, nfqueue uses should use F_GSO feature
flag and memcpy'ing 60k big packets isn't ideal.

  parent reply	other threads:[~2022-01-20 12:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09  3:16 [PATCH libnetfilter_queue v3 0/5] Speed-up Duncan Roe
2022-01-09  3:16 ` [PATCH libnetfilter_queue v3 1/5] src: eliminate packet copy when constructing struct pkt_buff Duncan Roe
2022-01-09  3:16 ` [PATCH libnetfilter_queue v3 2/5] src: Avoid compiler warning Duncan Roe
2022-01-09  3:16 ` [PATCH libnetfilter_queue v3 3/5] src: Use more meaningful name in callback.c Duncan Roe
2022-01-09  3:16 ` [PATCH libnetfilter_queue v3 4/5] build: doc: Eliminate doxygen warnings Duncan Roe
2022-01-09  3:16 ` [PATCH libnetfilter_queue v3 5/5] src: struct pktbuff is no longer opaque Duncan Roe
2022-01-17 23:58   ` [PATCH libnetfilter_queue v3 1-5/5] src: Speed-up Duncan Roe
2022-01-18  1:11     ` Pablo Neira Ayuso
2022-01-20  3:56       ` Duncan Roe
2022-01-20  6:27         ` Florian Westphal
2022-01-21  2:36           ` Duncan Roe
2022-01-23  2:03             ` Duncan Roe
2022-01-20 12:04         ` Florian Westphal [this message]
2022-01-20 12:40           ` Pablo Neira Ayuso
2022-02-22  1:39             ` Duncan Roe
2022-02-07  0:24           ` Duncan Roe
2022-02-07 10:44             ` Florian Westphal
2022-01-21  3:19       ` Duncan Roe

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=20220120120458.GF31905@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.