oracle / bpftune

bpftune uses BPF to auto-tune Linux systems
Other
654 stars 55 forks source link

use bpf global for netdev_max_backlog as ksym changes in 6.9 #88

Closed alan-maguire closed 1 month ago

alan-maguire commented 1 month ago

net_buffer_tuner.so was failing to load BTF due to a failure to find netdev_max_backlog ksym.

netdev_max_backlog was an int prior to 6.9 then it got added to a netdev hotpath struct; rather than using it in calculations retrieve the sysctl value and set a bpf global for use in bpf prog context; update it in userspace when we bump sysctl value.

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