We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a72925 commit 91e2a55Copy full SHA for 91e2a55
pkg/bpf/loader.go
@@ -84,6 +84,10 @@ func AttachNeighborHandlerToInterface(intf netlink.Link) error {
84
if err != nil {
85
return fmt.Errorf("error getting interface by name %s: %w", intf.Attrs().Name, err)
86
}
87
+ linkXdp := intf.Attrs().Xdp
88
+ if linkXdp.Attached && nwopbpf.HandleNeighborReplyXdp.FD() == linkXdp.Fd {
89
+ return nil
90
+ }
91
_, err = link.AttachXDP(link.XDPOptions{
92
Program: nwopbpf.HandleNeighborReplyXdp,
93
Interface: iface.Index,
0 commit comments