summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-01-16 19:44:02 +0300
committerJakub Kicinski <kuba@kernel.org>2026-01-21 05:25:33 +0300
commit79bfa5fb85870d44a5368790dbf5ccce007e6e9f (patch)
treed8e9579982dc8548bde3a94f34ec93c75a38da54 /include
parentee7be82f8c7e753e38dcf3add7ba65b543d49bd6 (diff)
downloadlinux-79bfa5fb85870d44a5368790dbf5ccce007e6e9f.tar.xz
net: fclone allocation small optimization
After skb allocation, initial skb->fclone value is 0 (SKB_FCLONE_UNAVAILABLE) We can replace one RMW sequence with a single OR instruction. movzbl 0x7e(%r13),%eax // skb->fclone = SKB_FCLONE_ORIG; and $0xf3,%al or $0x4,%al mov %al,0x7e(%r13) -> or $0x4,0x7e(%r13) // skb->fclone |= SKB_FCLONE_ORIG; Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260116164402.1872649-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions