Skip to content

Commit

Permalink
usm: go-tls: Change BPF_LRU_MAP to BPF_HASH_MAP (#32178)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb authored Dec 15, 2024
1 parent 179220f commit b9ab51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/network/ebpf/c/protocols/tls/go-tls-maps.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ BPF_HASH_MAP(offsets_data, go_tls_offsets_data_key_t, tls_offsets_data_t, 1024)

/* go_tls_read_args is used to get the read function info when running in the read-return uprobe.
The key contains the go routine id and the pid. */
BPF_LRU_MAP(go_tls_read_args, go_tls_function_args_key_t, go_tls_read_args_data_t, 2048)
BPF_HASH_MAP(go_tls_read_args, go_tls_function_args_key_t, go_tls_read_args_data_t, 2048)

/* go_tls_write_args is used to get the read function info when running in the write-return uprobe.
The key contains the go routine id and the pid. */
BPF_LRU_MAP(go_tls_write_args, go_tls_function_args_key_t, go_tls_write_args_data_t, 2048)
BPF_HASH_MAP(go_tls_write_args, go_tls_function_args_key_t, go_tls_write_args_data_t, 2048)

/* This map associates crypto/tls.(*Conn) values to the corresponding conn_tuple_t* value.
It is used to implement a simplified version of tup_from_ssl_ctx from usm.c
Expand Down

0 comments on commit b9ab51a

Please sign in to comment.