]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_queue: place bridge physports into queue_entry struct
authorFlorian Westphal <fw@strlen.de>
Fri, 27 Mar 2020 02:24:47 +0000 (03:24 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 29 Mar 2020 14:28:29 +0000 (16:28 +0200)
commit4a62d88a8a49e02be2ad0e7830c571b6035a900c
tree0bc01f1eb953ba286960e574325963061e01aa55
parentc9e12cfa7aa2ecc34f6158a18ee2e3c0fa1c8797
netfilter: nf_queue: place bridge physports into queue_entry struct

The refcount is done via entry->skb, which does work fine.
Major problem: When putting the refcount of the bridge ports, we
must always put the references while the skb is still around.

However, we will need to put the references after okfn() to avoid
a possible 1 -> 0 -> 1 refcount transition, so we cannot use the
skb pointer anymore.

Place the physports in the queue entry structure instead to allow
for refcounting changes in the next patch.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_queue.h
net/netfilter/nf_queue.c