Skip to content

Commit

Permalink
bpf: host: add drop notification for missed tail call in to-lxc polic…
Browse files Browse the repository at this point in the history
…y path

Straight-forward fix for a missing drop notification.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
  • Loading branch information
julianwiedmann committed Jul 21, 2023
1 parent 86cd0d5 commit 375b345
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bpf/bpf_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,8 @@ int handle_lxc_traffic(struct __ctx_buff *ctx)
lxc_id = ctx_load_meta(ctx, CB_DST_ENDPOINT_ID);
ctx_store_meta(ctx, CB_SRC_LABEL, HOST_ID);
tail_call_dynamic(ctx, &POLICY_CALL_MAP, lxc_id);
return DROP_MISSED_TAIL_CALL;
return send_drop_notify_error(ctx, HOST_ID, DROP_MISSED_TAIL_CALL,
CTX_ACT_DROP, METRIC_EGRESS);
}

return to_host_from_lxc(ctx);
Expand Down

0 comments on commit 375b345

Please sign in to comment.