mirror of https://github.com/aya-rs/aya
aya: xdp: fix detaching on kernels older than 5.7
XDP_FLAGS_REPLACE was added in 5.7. Now for kernels >= 5.7 whenever we detach an XDP program we pass along the program fd we expect to be detaching. For older kernels, we just detach whatever is attached, which is not great but it's the way the API worked pre XDP_FLAGS_REPLACE.pull/1/head
parent
607cf68a69
commit
30d2b25f11
Loading…
Reference in New Issue