Skip to content

Commit

Permalink
test bpf check
Browse files Browse the repository at this point in the history
  • Loading branch information
BSWANG committed Apr 15, 2024
1 parent 4af98b7 commit fa8cd9a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bpf/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ static inline int __do_flow(struct __sk_buff *skb){

struct flow_metrics *metric = bpf_map_lookup_elem(&insp_flow4_metrics, &tuple);
if(metric){
__sync_fetch_and_add(&metric->packets, 1);
__sync_fetch_and_add(&metric->bytes, skb->len);
}else {
struct flow_metrics m = {1, skb->len, 0, 0};
Expand Down

0 comments on commit fa8cd9a

Please sign in to comment.