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).
Unified · Split
| @@ -36,8 +36,8 @@ struct xt_action_param { · 35 unmodified lines | ||
| 36 | 36 | const void *matchinfo, *targinfo; |
| 37 | 37 | }; |
| 38 | 38 | const struct nf_hook_state *state; |
| 39 | − int fragoff; | |
| 40 | 39 | unsigned int thoff; |
| 40 | + u16 fragoff; | |
| 41 | 41 | bool hotdrop; |
| 42 | 42 | }; |
| 43 | 43 | |
| @@ -51,7 +51,7 @@ ip6_packet_match(const struct sk_buff *skb, · 50 unmodified lines | ||
| 51 | 51 | const char *outdev, |
| 52 | 52 | const struct ip6t_ip6 *ip6info, |
| 53 | 53 | unsigned int *protoff, |
| 54 | − int *fragoff, bool *hotdrop) | |
| 54 | + u16 *fragoff, bool *hotdrop) | |
| 55 | 55 | { |
| 56 | 56 | unsigned long ret; |
| 57 | 57 | const struct ipv6hdr *ipv6 = ipv6_hdr(skb); |