Skip to content

Commit

Permalink
[BPF] Skip map size adjustment when creating new conntrack map
Browse files Browse the repository at this point in the history
  • Loading branch information
ioworker0 authored and tomastigera committed Jan 21, 2025
1 parent 2a5f085 commit b7d72a0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions felix/cmd/calico-bpf/commands/conntrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,16 +459,9 @@ func newConntrackCreateCmd() *cobra.Command {
}

func (cmd *conntrackCreateCmd) Run(c *cobra.Command, _ []string) {
var (
ctMap maps.Map
ctErr error
)

cmd.ipv6 = ipv6 != nil && *ipv6
ctMap := getCTMap(cmd.version, cmd.ipv6)

if ctMap, ctErr = GetCTMap(cmd.version, cmd.ipv6); ctErr != nil {
log.WithError(ctErr).Fatal("Failed to get ConntrackMap")
}
if err := ctMap.EnsureExists(); err != nil {
log.WithError(err).Errorf("Failed to create conntrackMap version %d", cmd.version)
}
Expand Down

0 comments on commit b7d72a0

Please sign in to comment.