Skip to content

Commit

Permalink
Merge pull request #615 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
gh-613 Fixed certain misleading logs
  • Loading branch information
UltraInstinct14 authored Apr 1, 2024
2 parents 1279f57 + 9aef2ec commit f2ab8dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion loxilb-ebpf
4 changes: 2 additions & 2 deletions loxinet/dpebpf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,12 @@ func (e *DpEbpfH) DpEbpfUnInit() {
tk.LogIt(tk.LogInfo, "ebpf unload - %s\n", intf.Name)
ifStr := C.CString(intf.Name)
section := C.CString(string(C.TC_LL_SEC_DEFAULT))
if e.RssEn {
C.llb_dp_link_attach(ifStr, section, C.LL_BPF_MOUNT_TC, 1)
if e.RssEn || intf.Name == "llb0" {
xSection := C.CString(string(C.XDP_LL_SEC_DEFAULT))
C.llb_dp_link_attach(ifStr, xSection, C.LL_BPF_MOUNT_XDP, 1)
C.free(unsafe.Pointer(xSection))
}
C.llb_dp_link_attach(ifStr, section, C.LL_BPF_MOUNT_TC, 1)
C.free(unsafe.Pointer(ifStr))
C.free(unsafe.Pointer(section))
}
Expand Down

0 comments on commit f2ab8dd

Please sign in to comment.