netfilter: nft_socket: track register operations
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Mar 2022 17:23:09 +0000 (18:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 19 Mar 2022 23:29:47 +0000 (00:29 +0100)
commitd77a721d212d48e2ff62334e00cc4cfcad751ff5
treefe4c61a63fd9c5dd7a5b3d8726d931bb42c0ca60
parent71ef842d73f63b10ce84629dada75f402c6df36e
netfilter: nft_socket: track register operations

Check if the destination register already contains the data that this
socket expression performs. This allows to skip this redundant
operation.  If the destination contains a different selector, update the
register tracking information.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_socket.c