summaryrefslogtreecommitdiff
path: root/net/tls/tls_sw.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-07-08 04:03:09 +0300
committerJakub Kicinski <kuba@kernel.org>2022-07-09 04:38:44 +0300
commit2d91ecace6614cf6254001566292b808d7f70a91 (patch)
tree102051f148bc0998d65f0e2f15c3756eb3bf67ae /net/tls/tls_sw.c
parent67d7ebdeb2d5a058dd5079107505fffe7332b27a (diff)
downloadlinux-2d91ecace6614cf6254001566292b808d7f70a91.tar.xz
strparser: pad sk_skb_cb to avoid straddling cachelines
sk_skb_cb lives within skb->cb[]. skb->cb[] straddles 2 cache lines, each containing 24B of data. The first cache line does not contain much interesting information for users of strparser, so pad things a little. Previously strp_msg->full_len would live in the first cache line and strp_msg->offset in the second. We need to reorder the 8 byte temp_reg with struct tls_msg to prevent a 4B hole which would push the struct over 48B. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tls/tls_sw.c')
0 files changed, 0 insertions, 0 deletions