]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ecache: don't use nf_conn spinlock
authorFlorian Westphal <fw@strlen.de>
Sat, 5 Feb 2022 12:00:04 +0000 (13:00 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Feb 2022 10:44:03 +0000 (11:44 +0100)
commit81c507a934f5c1299bf09074f4444cc453d3e4ae
tree78ababedb6b76293835cfe540805c8dab479e894
parentdb39c5a7cf3d728fd0d37a14a0ac54ecbb4fba3d
netfilter: ecache: don't use nf_conn spinlock

For updating eache missed value we can use cmpxchg.
This also avoids need to disable BH.

kernel robot reported build failure on v1 because not all arches support
cmpxchg for u16, so extend this to u32.

This doesn't increase struct size, existing padding is used.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_ecache.h
net/netfilter/nf_conntrack_ecache.c