]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: x_tables: reduce xt_action_param by 8 byte
authorFlorian Westphal <fw@strlen.de>
Fri, 28 May 2021 10:30:03 +0000 (12:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 May 2021 23:04:53 +0000 (01:04 +0200)
commit72728e2978f8b3d9712c8aeadbaa162f880db174
tree4320ed35ca3f2e9240a90248f569c21b4e3f93e5
parent969793360afbef38da3c2daf28742db01b4d26cb
netfilter: x_tables: reduce xt_action_param by 8 byte

The fragment offset in ipv4/ipv6 is a 16bit field, so use
u16 instead of unsigned int.

On 64bit: 40 bytes to 32 bytes. By extension this also reduces
nft_pktinfo (56 to 48 byte).

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