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

monitor: Fix mismatching frontend service debug trace types #16953

Merged
merged 1 commit into from
Oct 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions pkg/monitor/datapath_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ const (
DbgToHost
DbgToStack
DbgPktHash
DbgLb6LookupMaster
DbgLb6LookupMasterFail
DbgLb6LookupFrontend
DbgLb6LookupFrontendFail
DbgLb6LookupBackendSlot
DbgLb6LookupBackendSlotSuccess
DbgLb6LookupBackendSlotV2Fail
DbgLb6LookupBackendFail
DbgLb6ReverseNatLookup
DbgLb6ReverseNat
DbgLb4LookupMaster
DbgLb4LookupMasterFail
DbgLb4LookupFrontend
DbgLb4LookupFrontendFail
DbgLb4LookupBackendSlot
DbgLb4LookupBackendSlotSuccess
DbgLb4LookupBackendSlotV2Fail
Expand Down Expand Up @@ -294,10 +294,10 @@ func (n *DebugMsg) Message() string {
return fmt.Sprintf("Packet hash=%d (%#x), selected_service=%d", n.Arg1, n.Arg1, n.Arg2)
case DbgRRBackendSlotSel:
return fmt.Sprintf("RR backend slot selection hash=%d (%#x), selected_service=%d", n.Arg1, n.Arg1, n.Arg2)
case DbgLb6LookupMaster:
return fmt.Sprintf("Master service lookup, addr.p4=%x key.dport=%d", n.Arg1, byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb6LookupMasterFail:
return fmt.Sprintf("Master service lookup failed, addr.p2=%x addr.p3=%x", n.Arg1, n.Arg2)
case DbgLb6LookupFrontend:
return fmt.Sprintf("Frontend service lookup, addr.p4=%x key.dport=%d", n.Arg1, byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb6LookupFrontendFail:
return fmt.Sprintf("Frontend service lookup failed, addr.p2=%x addr.p3=%x", n.Arg1, n.Arg2)
case DbgLb6LookupBackendSlot, DbgLb4LookupBackendSlot:
return fmt.Sprintf("Service backend slot lookup: slot=%d, dport=%d", n.Arg1, byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb6LookupBackendSlotV2Fail, DbgLb4LookupBackendSlotV2Fail:
Expand All @@ -310,10 +310,10 @@ func (n *DebugMsg) Message() string {
return fmt.Sprintf("Reverse NAT lookup, index=%d", byteorder.NetworkToHost16(uint16(n.Arg1)))
case DbgLb6ReverseNat:
return fmt.Sprintf("Performing reverse NAT, address.p4=%x port=%d", n.Arg1, byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb4LookupMaster:
return fmt.Sprintf("Master service lookup, addr=%s key.dport=%d", ip4Str(n.Arg1), byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb4LookupMasterFail:
return "Master service lookup failed"
case DbgLb4LookupFrontend:
return fmt.Sprintf("Frontend service lookup, addr=%s key.dport=%d", ip4Str(n.Arg1), byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb4LookupFrontendFail:
return "Frontend service lookup failed"
case DbgLb4LookupBackendSlotSuccess:
return fmt.Sprintf("Service backend slot lookup result: target=%s port=%d", ip4Str(n.Arg1), byteorder.NetworkToHost16(uint16(n.Arg2)))
case DbgLb4ReverseNat:
Expand Down