Skip to contentSkip to conversation

netfilter: nf_tables: nft_queue does not depend on x_tables

PATCH Applied Patrick McHardy 2 participants 4 messages Mar 25, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 netfilter: nf_tables: nft_queue does not depend on x_tables

---
 net/netfilter/Kconfig | 1 -
 1 file changed, 1 deletion(-)
net/netfilter/Kconfig +0 -1
index 971cd75..f70e34a 100644
@@ -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
#1 lore raw

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.

---
 net/netfilter/nft_meta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nft_meta.c +1 -1
index abe6811..5197874 100644
@@ -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
#2 lore raw

Re: [PATCH 2/2] netfilter: nft_meta: use raw_smp_processor_id()

Quoted 3 lines · Patrick McHardy

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.

Also applied, thanks.