inet: frags: get rid of nf_ct_frag6_skb_cb/NFCT_FRAG6_CB
authorEric Dumazet <edumazet@google.com>
Sat, 31 Mar 2018 19:59:00 +0000 (12:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:25:40 +0000 (23:25 -0400)
commitf2d1c724fca176ddbd32a9397df49221afbcb227
treefd2adc5d5bf77f50ac9f50e126e5b39695bd4427
parent219badfaade986a2c3d99abd4eb6d83f4f9ed2fb
inet: frags: get rid of nf_ct_frag6_skb_cb/NFCT_FRAG6_CB

nf_ct_frag6_queue() uses skb->cb[] to store the fragment offset,
meaning that we could use two cache lines per skb when finding
the insertion point, if for some reason inet6_skb_parm size
is increased in the future.

By using skb->ip_defrag_offset instead of skb->cb[] we pack all the fields
in a single cache line, matching what we did for IPv4.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/nf_conntrack_reasm.c