From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Edward Cree <ecree@solarflare.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH v4 net-next 7/9] net: ipv4: listified version of ip_rcv
Date: Tue, 3 Jul 2018 12:50:35 +0200 [thread overview]
Message-ID: <20180703105035.edifjogwotv3gzwy@salvia> (raw)
In-Reply-To: <68230d9e-e93c-ef91-4b54-e7aebedf1f84@solarflare.com>
On Mon, Jul 02, 2018 at 04:14:12PM +0100, Edward Cree wrote:
> Also involved adding a way to run a netfilter hook over a list of packets.
> Rather than attempting to make netfilter know about lists (which would be
> a major project in itself) we just let it call the regular okfn (in this
> case ip_rcv_finish()) for any packets it steals, and have it give us back
> a list of packets it's synchronously accepted (which normally NF_HOOK
> would automatically call okfn() on, but we want to be able to potentially
> pass the list to a listified version of okfn().)
> The netfilter hooks themselves are indirect calls that still happen per-
> packet (see nf_hook_entry_hookfn()), but again, changing that can be left
> for future work.
>
> There is potential for out-of-order receives if the netfilter hook ends up
> synchronously stealing packets, as they will be processed before any
> accepts earlier in the list. However, it was already possible for an
> asynchronous accept to cause out-of-order receives, so presumably this is
> considered OK.
I think we can simplify things if these chained packets don't follow
the standard forwarding path, this would require to revisit many
subsystems to handle these new chained packets - potentially a lot of
work and likely breaking many things - and I would expect we (and
other subsystems too) will not get very much benefits from these
chained packets.
In general I like this infrastructure, but I think we can get
something simpler if we combine it with the flowtable idea, so chained
packets follow the non-standard flowtable forwarding path as described
in [1].
We could generalize and place the flowtable code in the core if
needed, and make it not netfilter dependent if that's a problem.
Thanks.
[1] https://marc.info/?l=netfilter-devel&m=152898601419841&w=2
next prev parent reply other threads:[~2018-07-03 10:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-02 15:11 [PATCH v4 net-next 0/9] Handle multiple received packets at each stage Edward Cree
2018-07-02 15:12 ` [PATCH v4 net-next 1/9] net: core: trivial netif_receive_skb_list() entry point Edward Cree
2018-07-02 15:12 ` [PATCH v4 net-next 2/9] sfc: batch up RX delivery Edward Cree
2018-07-02 15:13 ` [PATCH v4 net-next 3/9] net: core: unwrap skb list receive slightly further Edward Cree
2018-07-02 15:13 ` [PATCH v4 net-next 4/9] net: core: Another step of skb receive list processing Edward Cree
2018-07-02 15:13 ` [PATCH v4 net-next 5/9] net: core: another layer of lists, around PF_MEMALLOC skb handling Edward Cree
2018-07-02 15:13 ` [PATCH v4 net-next 6/9] net: core: propagate SKB lists through packet_type lookup Edward Cree
2018-07-02 15:14 ` [PATCH v4 net-next 7/9] net: ipv4: listified version of ip_rcv Edward Cree
2018-07-03 10:50 ` Pablo Neira Ayuso [this message]
2018-07-03 12:13 ` Florian Westphal
2018-07-04 16:01 ` Edward Cree
2018-07-02 15:14 ` [PATCH v4 net-next 8/9] net: ipv4: listify ip_rcv_finish Edward Cree
2018-07-02 15:14 ` [PATCH v4 net-next 9/9] net: don't bother calling list RX functions on empty lists Edward Cree
2018-07-02 15:40 ` [PATCH v4 net-next 0/9] Handle multiple received packets at each stage David Ahern
2018-07-02 18:09 ` Edward Cree
2018-07-03 7:51 ` Paolo Abeni
2018-07-04 5:09 ` 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=20180703105035.edifjogwotv3gzwy@salvia \
--to=pablo@netfilter.org \
--cc=davem@davemloft.net \
--cc=ecree@solarflare.com \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox