Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/tcp_buffer_tuner.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ BPF_FENTRY(tcp_rcv_space_adjust, struct sock *sk)
return 0;

#ifndef BPFTUNE_LEGACY
/* CO-RE does not support bitfields... */
sk_userlocks = sk->sk_userlocks;
/* sk_userlocks is a bitfield prior to 6.9 */
if (LINUX_KERNEL_VERSION < KERNEL_VERSION(6, 9, 0)) {
/* CO-RE does not support bitfields... */
sk_userlocks = sk->sk_userlocks;
}
#endif
if ((sk_userlocks & SOCK_RCVBUF_LOCK) || near_memory_pressure ||
near_memory_exhaustion)
Expand Down