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

ipsec: discard trace events when monitor aggregation is enabled #27168

Merged
merged 1 commit into from
Aug 7, 2023
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
9 changes: 3 additions & 6 deletions bpf/bpf_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ static __always_inline int handle_ipv6(struct __ctx_buff *ctx,
ctx_change_type(ctx, PACKET_HOST);

send_trace_notify(ctx, TRACE_TO_STACK, *identity, 0, 0,
ctx->ingress_ifindex, TRACE_REASON_ENCRYPTED,
TRACE_PAYLOAD_LEN);
ctx->ingress_ifindex, TRACE_REASON_ENCRYPTED, 0);

return CTX_ACT_OK;
}
Expand Down Expand Up @@ -401,8 +400,7 @@ static __always_inline int handle_ipv4(struct __ctx_buff *ctx,
ctx_change_type(ctx, PACKET_HOST);

send_trace_notify(ctx, TRACE_TO_STACK, *identity, 0, 0,
ctx->ingress_ifindex, TRACE_REASON_ENCRYPTED,
TRACE_PAYLOAD_LEN);
ctx->ingress_ifindex, TRACE_REASON_ENCRYPTED, 0);

return CTX_ACT_OK;
}
Expand Down Expand Up @@ -581,8 +579,7 @@ int cil_from_overlay(struct __ctx_buff *ctx)
#ifdef ENABLE_IPSEC
if (is_esp(ctx, proto))
send_trace_notify(ctx, TRACE_FROM_OVERLAY, 0, 0, 0,
ctx->ingress_ifindex, TRACE_REASON_ENCRYPTED,
TRACE_PAYLOAD_LEN);
ctx->ingress_ifindex, TRACE_REASON_ENCRYPTED, 0);
else
#endif
{
Expand Down