Skip to content

Commit

Permalink
pkt xlat need to align with flow sampling configs (#503)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Mahmoud <[email protected]>
  • Loading branch information
msherif1234 authored Jan 13, 2025
1 parent 983f777 commit 978bc82
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/pkt_translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static inline int trace_nat_manip_pkt(struct nf_conn *ct, struct sk_buff *skb) {
long ret = 0;
flow_id id;

if (!enable_pkt_translation_tracking) {
if (enable_pkt_translation_tracking == 0 || do_sampling == 0) {
return 0;
}
__builtin_memset(&id, 0, sizeof(id));
Expand Down
Binary file modified pkg/ebpf/bpf_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_powerpc_bpfel.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_s390_bpfeb.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_x86_bpfel.o
Binary file not shown.

0 comments on commit 978bc82

Please sign in to comment.