Documentation

Overview

    Package signalmap represents the perf event map used to signal potential congestion to Cilium agent. It is primarily managed from the datapath; Cilium side is used to create the map only. +groupName=maps

    Index

    Constants

    View Source
    const (
    	// MapName is the BPF map name.
    	MapName = "cilium_signals"
    )

    Variables

    View Source
    var (
    	MaxEntries int
    )

    Functions

    func InitMap

    func InitMap(maxEntries int) error

      InitMap creates the signal map in the kernel.

      Types

      type Key

      type Key struct {
      	// contains filtered or unexported fields
      }

        Key is the index into the prog array map. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey

        func (*Key) DeepCopy

        func (in *Key) DeepCopy() *Key

          DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key.

          func (*Key) DeepCopyInto

          func (in *Key) DeepCopyInto(out *Key)

            DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

            func (*Key) DeepCopyMapKey

            func (in *Key) DeepCopyMapKey() bpf.MapKey

              DeepCopyMapKey is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapKey.

              func (*Key) GetKeyPtr

              func (k *Key) GetKeyPtr() unsafe.Pointer

                GetKeyPtr returns the unsafe pointer to the BPF key.

                func (Key) NewValue

                func (k Key) NewValue() bpf.MapValue

                  NewValue returns a new empty instance of the structure representing the BPF map value.

                  func (*Key) String

                  func (k *Key) String() string

                    String converts the key into a human readable string format.

                    type Value

                    type Value struct {
                    	// contains filtered or unexported fields
                    }

                      Value is the program ID in the prog array map. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue

                      func (*Value) DeepCopy

                      func (in *Value) DeepCopy() *Value

                        DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Value.

                        func (*Value) DeepCopyInto

                        func (in *Value) DeepCopyInto(out *Value)

                          DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

                          func (*Value) DeepCopyMapValue

                          func (in *Value) DeepCopyMapValue() bpf.MapValue

                            DeepCopyMapValue is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapValue.

                            func (*Value) GetValuePtr

                            func (v *Value) GetValuePtr() unsafe.Pointer

                              GetValuePtr returns the unsafe pointer to the BPF value.

                              func (*Value) String

                              func (v *Value) String() string

                                String converts the value into a human readable string format.