Skip to content

Commit

Permalink
config map: remove constant UsedEntries
Browse files Browse the repository at this point in the history
This commit removes the unused constant UsedEntries in the runtime
config map. Therefore, AgentLiveness gets moved to position 1.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
  • Loading branch information
mhofstetter authored and tklauser committed Jun 15, 2023
1 parent bd6034a commit f0f7d0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions bpf/lib/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,10 @@ struct auth_info {
*/
enum {
RUNTIME_CONFIG_UTIME_OFFSET = 0, /* Index to Unix time offset in 512 ns units */
RUNTIME_CONFIG_USED_ENTRIES = 1,
/* Last monotonic time, periodically set by the agent to
* tell the datapath its still updating maps
*/
RUNTIME_CONFIG_AGENT_LIVENESS = 2,
RUNTIME_CONFIG_AGENT_LIVENESS = 1,
};

struct metrics_key {
Expand Down
1 change: 0 additions & 1 deletion pkg/maps/configmap/config_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type Index uint32
// Must be in sync with RUNTIME_CONFIG_ enum in bpf/lib/common.h
const (
UTimeOffset Index = iota
UsedEntries
AgentLiveness
)

Expand Down

0 comments on commit f0f7d0c

Please sign in to comment.