From: Alexei Starovoitov <ast@plumgrid.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>, netfilter-devel@vger.kernel.org
Cc: davem@davemloft.net, netdev@vger.kernel.org, jhs@mojatatu.com,
daniel@iogearbox.net, eric.dumazet@gmail.com, kaber@trash.net
Subject: Re: [PATCH 5/5] netfilter: add netfilter ingress hook after handle_ing() under unique static key
Date: Wed, 13 May 2015 09:59:46 -0700 [thread overview]
Message-ID: <55538302.5080702@plumgrid.com> (raw)
In-Reply-To: <1431533978-26901-6-git-send-email-pablo@netfilter.org>
On 5/13/15 9:19 AM, Pablo Neira Ayuso wrote:
> This patch adds the Netfilter ingress hook just after the existing tc ingress
> hook, that seems to be the consensus solution for this.
Looks good to me.
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 2b39235..6c256f8 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -1659,6 +1659,9 @@ struct net_device {
> struct tcf_proto __rcu *ingress_cl_list;
> #endif
> struct netdev_queue __rcu *ingress_queue;
> +#ifdef CONFIG_NETFILTER_INGRESS
> + struct list_head nf_hooks_ingress;
> +#endif
...
> diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
> index f70e34a..db1c674 100644
> --- a/net/netfilter/Kconfig
> +++ b/net/netfilter/Kconfig
> @@ -1,6 +1,13 @@
> menu "Core Netfilter Configuration"
> depends on NET && INET && NETFILTER
>
> +config NETFILTER_INGRESS
> + bool "Netfilter ingress support"
> + select NET_INGRESS
> + help
> + This allows you to classify packets from ingress using the Netfilter
> + infrastructure.
> +
should be some default hint as well?
not sure why you want to do it under another config flag.
Just makes it harder to test all config combinations.
I think under global CONFIG_NETFILTER it would be fine as well.
next prev parent reply other threads:[~2015-05-13 16:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 16:19 [PATCH 0/5 net-next] Netfilter ingress support (v4) Pablo Neira Ayuso
2015-05-13 16:19 ` [PATCH 1/5] netfilter: cleanup struct nf_hook_ops indentation Pablo Neira Ayuso
2015-05-13 16:19 ` [PATCH 2/5] netfilter: add hook list to nf_hook_state Pablo Neira Ayuso
2015-05-13 16:19 ` [PATCH 3/5] netfilter: add nf_hook_list_active() Pablo Neira Ayuso
2015-05-13 16:19 ` [PATCH 4/5] net: add CONFIG_NET_INGRESS to enable ingress filtering Pablo Neira Ayuso
2015-05-13 16:55 ` Alexei Starovoitov
2015-05-13 16:19 ` [PATCH 5/5] netfilter: add netfilter ingress hook after handle_ing() under unique static key Pablo Neira Ayuso
2015-05-13 16:59 ` Alexei Starovoitov [this message]
2015-05-13 17:56 ` Pablo Neira Ayuso
2015-05-13 19:36 ` Nicolas Dichtel
2015-05-14 5:11 ` David Miller
2015-05-14 5:10 ` [PATCH 0/5 net-next] Netfilter ingress support (v4) 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=55538302.5080702@plumgrid.com \
--to=ast@plumgrid.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=jhs@mojatatu.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--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 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).