Skip to content

Commit

Permalink
Kmesh: Log printing information is optimized.
Browse files Browse the repository at this point in the history
Log printing information is optimized for map_of_dst_info

Signed-off-by: bitcoffee <[email protected]>
  • Loading branch information
bitcoffeeiux committed Apr 17, 2024
1 parent 39640b4 commit aaf7ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/kmesh/workload/sockops_tuple.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static inline void clean_dstinfo_map(struct bpf_sock_ops *skops)
__u32 *key = (__u32 *)skops->sk;
long ret = bpf_map_delete_elem(&map_of_dst_info, &key);
if(ret && ret != -ENOENT)
BPF_LOG(INFO, SOCKOPS, "map_of_dst_info bpf_map_delete_elem failed, ret: %d\n", ret);
BPF_LOG(INFO, SOCKOPS, "bpf map delete destination info failed, ret: %d\n", ret);
}

// insert an IPv4 tuple into the ringbuf
Expand Down

0 comments on commit aaf7ddb

Please sign in to comment.