diff options
author | Patrick McHardy <kaber@trash.net> | 2015-03-25 08:09:56 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-25 12:09:40 +0100 |
commit | 14d14a5d2957a4a047b4dbabb6d5ef28a7a70b33 (patch) | |
tree | 50565f0e7e33eea6117b883a546c46a3121e53c7 /net/netfilter/nft_meta.c | |
parent | d95797252a9d967d462d9581fb72546d6a92e14b (diff) | |
download | op-kernel-dev-14d14a5d2957a4a047b4dbabb6d5ef28a7a70b33.zip op-kernel-dev-14d14a5d2957a4a047b4dbabb6d5ef28a7a70b33.tar.gz |
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 <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_meta.c')
-rw-r--r-- | net/netfilter/nft_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_meta.c b/net/netfilter/nft_meta.c index abe6811..5197874 100644 --- a/net/netfilter/nft_meta.c +++ b/net/netfilter/nft_meta.c @@ -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) |