oracle / bpftune

bpftune uses BPF to auto-tune Linux systems
Other
685 stars 59 forks source link

tcp_buffer_tuner: fix load failure for 6.9+ #87

Closed alan-maguire closed 4 months ago

alan-maguire commented 4 months ago

TCP buffer tuner was failing to load on 6.9 and later.

CO-RE relocation for sk_userlocks in struct sock was the cause; the problem is sk_userlocks changes from a bitfield to a plain u8 and the vmlinux.h that was generated had the old representation. We can use a Linux version check to guard check of sk_userlocks.

Reported-by: HippieMitch https://github.com/HippieMitch