diff options
author | David S. Miller <davem@davemloft.net> | 2015-03-29 15:43:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-29 15:43:43 -0400 |
commit | 4ef295e04722c955cd60723d78ec525a2e80de27 (patch) | |
tree | 073074d1a281a0172104fd97e71683e4002d63f2 /net/ipv4 | |
parent | ae7633c841b3d17ab54e372ad9cc0f37a9a7c72d (diff) | |
parent | cc02e457bb86f7b6ffee3651bab22d104b60effb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
Pablo Neira Ayuso says:
====================
Netfilter updates for net-next
The following patchset contains Netfilter updates for your net-next tree.
Basically, nf_tables updates to add the set extension infrastructure and finish
the transaction for sets from Patrick McHardy. More specifically, they are:
1) Move netns to basechain and use recently added possible_net_t, from
Patrick McHardy.
2) Use LOGLEVEL_<FOO> from nf_log infrastructure, from Joe Perches.
3) Restore nf_log_trace that was accidentally removed during conflict
resolution.
4) nft_queue does not depend on NETFILTER_XTABLES, starting from here
all patches from Patrick McHardy.
5) Use raw_smp_processor_id() in nft_meta.
Then, several patches to prepare ground for the new set extension
infrastructure:
6) Pass object length to the hash callback in rhashtable as needed by
the new set extension infrastructure.
7) Cleanup patch to restore struct nft_hash as wrapper for struct
rhashtable
8) Another small source code readability cleanup for nft_hash.
9) Convert nft_hash to rhashtable callbacks.
And finally...
10) Add the new set extension infrastructure.
11) Convert the nft_hash and nft_rbtree sets to use it.
12) Batch set element release to avoid several RCU grace period in a row
and add new function nft_set_elem_destroy() to consolidate set element
release.
13) Return the set extension data area from nft_lookup.
14) Refactor existing transaction code to add some helper functions
and document it.
15) Complete the set transaction support, using similar approach to what we
already use, to activate/deactivate elements in an atomic fashion.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/nf_log_arp.c | 4 | ||||
-rw-r--r-- | net/ipv4/netfilter/nf_log_ipv4.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_log_arp.c b/net/ipv4/netfilter/nf_log_arp.c index d059182c1466..e7ad950cf9ef 100644 --- a/net/ipv4/netfilter/nf_log_arp.c +++ b/net/ipv4/netfilter/nf_log_arp.c | |||
@@ -10,8 +10,10 @@ | |||
10 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | |||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
14 | 15 | ||
16 | #include <linux/kernel.h> | ||
15 | #include <linux/module.h> | 17 | #include <linux/module.h> |
16 | #include <linux/spinlock.h> | 18 | #include <linux/spinlock.h> |
17 | #include <linux/skbuff.h> | 19 | #include <linux/skbuff.h> |
@@ -27,7 +29,7 @@ static struct nf_loginfo default_loginfo = { | |||
27 | .type = NF_LOG_TYPE_LOG, | 29 | .type = NF_LOG_TYPE_LOG, |
28 | .u = { | 30 | .u = { |
29 | .log = { | 31 | .log = { |
30 | .level = 5, | 32 | .level = LOGLEVEL_NOTICE, |
31 | .logflags = NF_LOG_MASK, | 33 | .logflags = NF_LOG_MASK, |
32 | }, | 34 | }, |
33 | }, | 35 | }, |
diff --git a/net/ipv4/netfilter/nf_log_ipv4.c b/net/ipv4/netfilter/nf_log_ipv4.c index 75101980eeee..076aadda0473 100644 --- a/net/ipv4/netfilter/nf_log_ipv4.c +++ b/net/ipv4/netfilter/nf_log_ipv4.c | |||
@@ -5,8 +5,10 @@ | |||
5 | * it under the terms of the GNU General Public License version 2 as | 5 | * it under the terms of the GNU General Public License version 2 as |
6 | * published by the Free Software Foundation. | 6 | * published by the Free Software Foundation. |
7 | */ | 7 | */ |
8 | |||
8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
9 | 10 | ||
11 | #include <linux/kernel.h> | ||
10 | #include <linux/module.h> | 12 | #include <linux/module.h> |
11 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
12 | #include <linux/skbuff.h> | 14 | #include <linux/skbuff.h> |
@@ -26,7 +28,7 @@ static struct nf_loginfo default_loginfo = { | |||
26 | .type = NF_LOG_TYPE_LOG, | 28 | .type = NF_LOG_TYPE_LOG, |
27 | .u = { | 29 | .u = { |
28 | .log = { | 30 | .log = { |
29 | .level = 5, | 31 | .level = LOGLEVEL_NOTICE, |
30 | .logflags = NF_LOG_MASK, | 32 | .logflags = NF_LOG_MASK, |
31 | }, | 33 | }, |
32 | }, | 34 | }, |