Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - Merge latest changes to OCI branch #470

Merged
merged 12 commits into from
Dec 26, 2023
Next Next commit
Don't exit if interface is not found
  • Loading branch information
nik-netlox committed Dec 20, 2023
commit 8a630d16a3b7e75b09b80e49b9e17ea415071cae
5 changes: 5 additions & 0 deletions loxinet/dpebpf_linux.go
Original file line number Diff line number Diff line change
@@ -475,6 +475,11 @@ func (e *DpEbpfH) DpPortPropMod(w *PortDpWorkQ) int {
lRet := e.loadEbpfPgm(w.LoadEbpf)
if lRet != 0 {
tk.LogIt(tk.LogError, "ebpf load - %d error\n", w.PortNum)
/* Shouldn't exit if the interface is not there, so return -1 and continue*/
_, err := nlp.LinkByName(w.LoadEbpf)
if err != nil {
return -1
}
syscall.Exit(1)
}
}