You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the bpf helper function bpf_get_netns_cookie() is not exposed to the
TC BPF programs, we would need to use ELF substitutions to make the network
namespace cookie of an endpoint available to the BPF program attached.
In a subsequent patch, we would use this in TC BPF program to detect LRP loopback.
Copy file name to clipboardExpand all lines: pkg/endpoint/identifiers.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -168,3 +168,8 @@ func (e *Endpoint) GetEndpointNetnsCookie() uint64 {
168
168
defere.runlock()
169
169
returne.NetNsCookie
170
170
}
171
+
172
+
// GetEndpointNetnsCookieLocked is identical to GetEndpointNetnsCookie(). This is needed because WriteEndpointConfig() assumes that the endpoint is locked.
0 commit comments