]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: flowtable: reorder nf_flowtable struct members
authorFlorian Westphal <fw@strlen.de>
Mon, 20 Nov 2023 16:29:58 +0000 (17:29 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 22 Dec 2023 11:08:38 +0000 (12:08 +0100)
commit3fde94b6e930f5a0fd4f6458da8d559c898f2322
tree204edfcc01cafda3c2c589db0b56c459e5ba5951
parentffb40fba404561f141d37e5878ec542b67464d74
netfilter: flowtable: reorder nf_flowtable struct members

Place the read-mostly parts accessed by the datapath first.

In particular, we do access ->flags member (to see if HW offload
is enabled) for every single packet, but this is placed in the 5th
cacheline.

priority could stay where it is, but move it too to cover a hole.

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