Skip to content

Bump ENDPOINTS_MAP_SIZE dynamically based on endpoint count #3075

@joestringer

Description

@joestringer

This map size is currently hardcoded, but it should be straightforward to expand this on demand.

// MaxKeys represents the maximum number of endpoints in the map
MaxKeys = 0xFFFF

fmt.Fprintf(fw, "#define ENDPOINTS_MAP_SIZE %d\n", lxcmap.MaxKeys)

.max_elem = ENDPOINTS_MAP_SIZE,

.max_elem = ENDPOINTS_MAP_SIZE, /* XXX: Consider resizing? */

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/daemonImpacts operation of the Cilium daemon.area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.help-wantedYou can help! Post a detailed plan on the issue or create a PR to solve this issue.kind/featureThis introduces new functionality.staleThe stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions