Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

netkit: Document fast vs slowpath members via macros

Instead of a comment, just use two cachline groups to document the intent
for members often accessed in fast or slow path.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Co-developed-by: David Wei <dw@davidwei.uk>
Signed-off-by: David Wei <dw@davidwei.uk>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20251031212103.310683-11-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Daniel Borkmann and committed by
Jakub Kicinski
25e63e55 24ab8efb

+4 -2
+4 -2
drivers/net/netkit.c
··· 16 16 #define DRV_NAME "netkit" 17 17 18 18 struct netkit { 19 - /* Needed in fast-path */ 19 + __cacheline_group_begin(netkit_fastpath); 20 20 struct net_device __rcu *peer; 21 21 struct bpf_mprog_entry __rcu *active; 22 22 enum netkit_action policy; 23 23 enum netkit_scrub scrub; 24 24 struct bpf_mprog_bundle bundle; 25 + __cacheline_group_end(netkit_fastpath); 25 26 26 - /* Needed in slow-path */ 27 + __cacheline_group_begin(netkit_slowpath); 27 28 enum netkit_mode mode; 28 29 bool primary; 29 30 u32 headroom; 31 + __cacheline_group_end(netkit_slowpath); 30 32 }; 31 33 32 34 struct netkit_link {