netfilter: nf_tables: nft_queue does not depend on x_tables
Subsystems (2)
PATCH 1/2 netfilter: nf_tables: nft_queue does not depend on x_tables
Signed-off-by Patrick McHardy <[email protected]>
--- net/netfilter/Kconfig | 1 - 1 file changed, 1 deletion(-)
net/netfilter/Kconfig +0 -1
@@ -522,7 +522,6 @@ config NFT_NAT typical Network Address Translation (NAT) packet transformations. config NFT_QUEUE - depends on NETFILTER_XTABLES depends on NETFILTER_NETLINK_QUEUE tristate "Netfilter nf_tables queue module" help
Signature · 1 line
2.1.0
PATCH 2/2 netfilter: nft_meta: use raw_smp_processor_id()
Using smp_processor_id() triggers warnings with PREEMPT_RCU. There is no point in disabling preemption since we only collect the numeric value, so use raw_smp_processor_id() instead.
Signed-off-by Patrick McHardy <[email protected]>
--- net/netfilter/nft_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nft_meta.c +1 -1
@@ -153,7 +153,7 @@ void nft_meta_get_eval(const struct nft_expr *expr, }break ;case NFT_META_CPU : - dest->data[0 ] =smp_processor_id (); + dest->data[0 ] =raw_smp_processor_id ();break ;case NFT_META_IIFGROUP :if (in ==NULL )
Signature · 1 line
2.1.0
Pablo Neira Ayuso
maintainerRe: [PATCH 2/2] netfilter: nft_meta: use raw_smp_processor_id()
Quoted 3 lines · Patrick McHardy
Using
smp_processor_id()triggers warnings withPREEMPT_RCU. There is no point in disabling preemption since we only collect the numeric value, so useraw_smp_processor_id()instead.
Also applied, thanks.
Applied, thanks Patrick.