Skip to content

Commit

Permalink
usm: sharedlibraries: Change BPF_LRU_MAP to BPF_HASH_MAP (#32179)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb authored Dec 15, 2024
1 parent b9ab51a commit cfea906
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/network/ebpf/c/protocols/tls/native-tls-maps.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@

#include "map-defs.h"

BPF_LRU_MAP(ssl_sock_by_ctx, void *, ssl_sock_t, 1)
BPF_HASH_MAP(ssl_sock_by_ctx, void *, ssl_sock_t, 1)

BPF_LRU_MAP(ssl_read_args, u64, ssl_read_args_t, 1024)
BPF_HASH_MAP(ssl_read_args, u64, ssl_read_args_t, 1024)

BPF_LRU_MAP(ssl_read_ex_args, u64, ssl_read_ex_args_t, 1024)
BPF_HASH_MAP(ssl_read_ex_args, u64, ssl_read_ex_args_t, 1024)

BPF_LRU_MAP(ssl_write_args, u64, ssl_write_args_t, 1024)
BPF_HASH_MAP(ssl_write_args, u64, ssl_write_args_t, 1024)

BPF_LRU_MAP(ssl_write_ex_args, u64, ssl_write_ex_args_t, 1024)
BPF_HASH_MAP(ssl_write_ex_args, u64, ssl_write_ex_args_t, 1024)

BPF_LRU_MAP(bio_new_socket_args, __u64, __u32, 1024)
BPF_HASH_MAP(bio_new_socket_args, __u64, __u32, 1024)

BPF_LRU_MAP(fd_by_ssl_bio, __u32, void *, 1024)
BPF_HASH_MAP(fd_by_ssl_bio, __u32, void *, 1024)

BPF_LRU_MAP(ssl_ctx_by_pid_tgid, __u64, void *, 1024)
BPF_HASH_MAP(ssl_ctx_by_pid_tgid, __u64, void *, 1024)

#endif

0 comments on commit cfea906

Please sign in to comment.