Skip to content

Commit

Permalink
gh-89 fc-map garbage collection added
Browse files Browse the repository at this point in the history
  • Loading branch information
PacketCrunch committed Sep 6, 2022
1 parent 5e07112 commit 31d3719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ebpf/common/llb_dpapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
#define LLB_DP_PKT_SLOW_PGM_ID (1)
#define LLB_DP_PKT_PGM_ID (0)

/* Hard-timeout of 30s for fc dp entry */
#define FC_V4_DPTO (30000000000)
/* Hard-timeout of 40s for fc dp entry */
#define FC_V4_DPTO (40000000000)

/* Hard-timeout of 30m for fc cp entry */
#define FC_V4_CPTO (1800000000000)
/* Hard-timeout of 2m for fc cp entry */
#define FC_V4_CPTO (120000000000)

/* Hard-timeout of 30m for ct entry */
#define CT_V4_CPTO (1800000000000)
Expand Down
1 change: 1 addition & 0 deletions loxinet/dpebpf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func dpEbpfTicker() {
// which might also get aged out in this process
C.llb_collect_map_stats(C.int(C.LL_DP_ACLV4_STATS_MAP))
C.llb_age_map_entries(C.LL_DP_CTV4_MAP)
C.llb_age_map_entries(C.LL_DP_FCV4_MAP)
mh.dpEbpf.tbN++
}
}
Expand Down

0 comments on commit 31d3719

Please sign in to comment.