Centos-kernel-stream-9/net/strparser
Sabrina Dubroca 90cfe62767 strparser: pad sk_skb_cb to avoid straddling cachelines
Tested: selftests
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2143700

commit 2d91ecace6614cf6254001566292b808d7f70a91
Author: Jakub Kicinski <kuba@kernel.org>
Date:   Thu Jul 7 18:03:09 2022 -0700

    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>

Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com>
2022-11-30 23:43:02 +01:00
..
Kconfig
Makefile
strparser.c strparser: pad sk_skb_cb to avoid straddling cachelines 2022-11-30 23:43:02 +01:00