|
Hi, Generally when one uses l, err := link.AttachXDP(link.XDPOptions{
Program: objs.Filter,
Interface: iface.Index,
Flags: link.XDPDriverMode,
})
// err => failed to attach link: create link: file existIs there a way to make Some network cards/drivers struggle and misbehave if you completely unload an XDP program and load in a new one under load (can cause the device to reset/hang etc), I'm thinking simply updating the program instead would lessen the impact during software updates. |
Answered by
florianl
Nov 15, 2024
Replies: 1 comment 2 replies
|
With (*RawLink) Update(..) you should be able to update the eBPF program for an existing link. |
2 replies
Answer selected by
FHRNet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With (*RawLink) Update(..) you should be able to update the eBPF program for an existing link.