v1alpha1

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the configuration.net v1alpha1 API group +kubebuilder:object:generate=true +groupName=configuration.net.nvidia.com

Package v1alpha1 contains API Schema definitions for the configuration.net v1alpha1 API group +kubebuilder:object:generate=true +groupName=configuration.net.nvidia.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "configuration.net.nvidia.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ConfigurationTemplateSpec

type ConfigurationTemplateSpec struct {
	// Number of VFs to be configured
	// +required
	NumVfs int `json:"numVfs"`
	// LinkType to be configured, Ethernet|Infiniband
	// +kubebuilder:validation:Enum=Ethernet;Infiniband
	// +required
	LinkType LinkTypeEnum `json:"linkType"`
	// PCI performance optimization settings
	PciPerformanceOptimized *PciPerformanceOptimizedSpec `json:"pciPerformanceOptimized,omitempty"`
	// RoCE optimization settings
	RoceOptimized *RoceOptimizedSpec `json:"roceOptimized,omitempty"`
	// GPU Direct optimization settings
	GpuDirectOptimized *GpuDirectOptimizedSpec `json:"gpuDirectOptimized,omitempty"`
}

ConfigurationTemplateSpec is a set of configurations for the NICs

func (*ConfigurationTemplateSpec) DeepCopy

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

func (*ConfigurationTemplateSpec) DeepCopyInto

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

type FirmwareTemplateSpec added in v0.1.18

type FirmwareTemplateSpec struct {
	// NicFirmwareSourceRef refers to existing NicFirmwareSource CR on where to get the FW from
	// +required
	NicFirmwareSourceRef string `json:"nicFirmwareSourceRef"`
	// UpdatePolicy indicates whether the operator needs to validate installed FW or upgrade it
	// +kubebuilder:validation:Enum=Validate;Update
	// +required
	UpdatePolicy string `json:"updatePolicy"`
}

FirmwareTemplateSpec specifies a FW update policy for a given FW source ref

func (*FirmwareTemplateSpec) DeepCopy added in v0.1.18

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

func (*FirmwareTemplateSpec) DeepCopyInto added in v0.1.18

func (in *FirmwareTemplateSpec) DeepCopyInto(out *FirmwareTemplateSpec)

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

type GpuDirectOptimizedSpec

type GpuDirectOptimizedSpec struct {
	// Optimize GPU Direct
	Enabled bool `json:"enabled"`
	// GPU direct environment, e.g. Baremetal
	Env string `json:"env"`
}

GpuDirectOptimizedSpec specifies GPU Direct optimization settings

func (*GpuDirectOptimizedSpec) DeepCopy

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

func (*GpuDirectOptimizedSpec) DeepCopyInto

func (in *GpuDirectOptimizedSpec) DeepCopyInto(out *GpuDirectOptimizedSpec)

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

type LinkTypeEnum

type LinkTypeEnum string

LinkTypeEnum described the link type (Ethernet / Infiniband) +enum

type NicConfigurationTemplate

type NicConfigurationTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Defines the desired state of NICs
	Spec NicConfigurationTemplateSpec `json:"spec,omitempty"`
	// Defines the observed state of NicConfigurationTemplate
	Status NicTemplateStatus `json:"status,omitempty"`
}

NicConfigurationTemplate is the Schema for the nicconfigurationtemplates API

func (*NicConfigurationTemplate) DeepCopy

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

func (*NicConfigurationTemplate) DeepCopyInto

func (in *NicConfigurationTemplate) DeepCopyInto(out *NicConfigurationTemplate)

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

func (*NicConfigurationTemplate) DeepCopyObject

func (in *NicConfigurationTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicConfigurationTemplateList

type NicConfigurationTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NicConfigurationTemplate `json:"items"`
}

NicConfigurationTemplateList contains a list of NicConfigurationTemplate

func (*NicConfigurationTemplateList) DeepCopy

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

func (*NicConfigurationTemplateList) DeepCopyInto

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

func (*NicConfigurationTemplateList) DeepCopyObject

func (in *NicConfigurationTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicConfigurationTemplateSpec

type NicConfigurationTemplateSpec struct {
	// NodeSelector contains labels required on the node. When empty, the template will be applied to matching devices on all nodes.
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// NIC selector configuration
	// +required
	NicSelector *NicSelectorSpec `json:"nicSelector"`
	// ResetToDefault specifies whether node agent needs to perform a reset flow
	// The following operations will be performed:
	// * Nvconfig reset of all non-volatile configurations
	//   - Mstconfig -d <device> reset for each PF
	//   - Mstconfig -d <device> set ADVANCED_PCI_SETTINGS=1
	// * Node reboot
	//   - Applies new NIC NV config
	//   - Will undo any runtime configuration previously performed for the device/driver
	// +optional
	// +kubebuilder:default:=false
	ResetToDefault bool `json:"resetToDefault,omitempty"`
	// Configuration template to be applied to matching devices
	Template *ConfigurationTemplateSpec `json:"template"`
}

NicConfigurationTemplateSpec defines the desired state of NicConfigurationTemplate

func (*NicConfigurationTemplateSpec) DeepCopy

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

func (*NicConfigurationTemplateSpec) DeepCopyInto

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

type NicDevice

type NicDevice struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NicDeviceSpec   `json:"spec,omitempty"`
	Status NicDeviceStatus `json:"status,omitempty"`
}

NicDevice is the Schema for the nicdevices API

func (*NicDevice) DeepCopy

func (in *NicDevice) DeepCopy() *NicDevice

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

func (*NicDevice) DeepCopyInto

func (in *NicDevice) DeepCopyInto(out *NicDevice)

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

func (*NicDevice) DeepCopyObject

func (in *NicDevice) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicDeviceConfigurationSpec

type NicDeviceConfigurationSpec struct {
	// ResetToDefault specifies whether node agent needs to perform a reset flow.
	// In NIC Configuration Operator template v0.1.14 BF2/BF3 DPUs (not SuperNics) FW reset flow isn't supported.
	// The following operations will be performed:
	// * Nvconfig reset of all non-volatile configurations
	//   - Mstconfig -d <device> reset for each PF
	//   - Mstconfig -d <device> set ADVANCED_PCI_SETTINGS=1
	// * Node reboot
	//   - Applies new NIC NV config
	//   - Will undo any runtime configuration previously performed for the device/driver
	ResetToDefault bool `json:"resetToDefault,omitempty"`
	// Configuration template applied from the NicConfigurationTemplate CR
	Template *ConfigurationTemplateSpec `json:"template,omitempty"`
}

NicDeviceConfigurationSpec contains desired configuration of the NIC

func (*NicDeviceConfigurationSpec) DeepCopy

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

func (*NicDeviceConfigurationSpec) DeepCopyInto

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

type NicDeviceList

type NicDeviceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NicDevice `json:"items"`
}

NicDeviceList contains a list of NicDevice

func (*NicDeviceList) DeepCopy

func (in *NicDeviceList) DeepCopy() *NicDeviceList

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

func (*NicDeviceList) DeepCopyInto

func (in *NicDeviceList) DeepCopyInto(out *NicDeviceList)

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

func (*NicDeviceList) DeepCopyObject

func (in *NicDeviceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicDevicePortSpec

type NicDevicePortSpec struct {
	// PCI is a PCI address of the port, e.g. 0000:3b:00.0
	PCI string `json:"pci"`
	// NetworkInterface is the name of the network interface for this port, e.g. eth1
	NetworkInterface string `json:"networkInterface,omitempty"`
	// RdmaInterface is the name of the rdma interface for this port, e.g. mlx5_1
	RdmaInterface string `json:"rdmaInterface,omitempty"`
}

NicDevicePortSpec describes the ports of the NIC

func (*NicDevicePortSpec) DeepCopy

func (in *NicDevicePortSpec) DeepCopy() *NicDevicePortSpec

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

func (*NicDevicePortSpec) DeepCopyInto

func (in *NicDevicePortSpec) DeepCopyInto(out *NicDevicePortSpec)

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

type NicDeviceSpec

type NicDeviceSpec struct {
	// Configuration specifies the configuration requested by NicConfigurationTemplate
	Configuration *NicDeviceConfigurationSpec `json:"configuration,omitempty"`
	// Firmware specifies the fw upgrade policy requested by NicFirmwareTemplate
	Firmware *FirmwareTemplateSpec `json:"firmware,omitempty"`
}

NicDeviceSpec defines the desired state of NicDevice

func (*NicDeviceSpec) DeepCopy

func (in *NicDeviceSpec) DeepCopy() *NicDeviceSpec

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

func (*NicDeviceSpec) DeepCopyInto

func (in *NicDeviceSpec) DeepCopyInto(out *NicDeviceSpec)

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

type NicDeviceStatus

type NicDeviceStatus struct {
	// Node where the device is located
	Node string `json:"node"`
	// Type of device, e.g. ConnectX7
	Type string `json:"type"`
	// Serial number of the device, e.g. MT2116X09299
	SerialNumber string `json:"serialNumber"`
	// Part number of the device, e.g. MCX713106AEHEA_QP1
	PartNumber string `json:"partNumber"`
	// Product Serial ID of the device, e.g. MT_0000000221
	PSID string `json:"psid"`
	// Firmware version currently installed on the device, e.g. 22.31.1014
	FirmwareVersion string `json:"firmwareVersion"`
	// List of ports for the device
	Ports []NicDevicePortSpec `json:"ports"`
	// List of conditions observed for the device
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

NicDeviceStatus defines the observed state of NicDevice

func (*NicDeviceStatus) DeepCopy

func (in *NicDeviceStatus) DeepCopy() *NicDeviceStatus

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

func (*NicDeviceStatus) DeepCopyInto

func (in *NicDeviceStatus) DeepCopyInto(out *NicDeviceStatus)

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

type NicFirmwareSource added in v0.1.18

type NicFirmwareSource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NicFirmwareSourceSpec   `json:"spec,omitempty"`
	Status NicFirmwareSourceStatus `json:"status,omitempty"`
}

NicFirmwareSource is the Schema for the nicfirmwaresources API

func (*NicFirmwareSource) DeepCopy added in v0.1.18

func (in *NicFirmwareSource) DeepCopy() *NicFirmwareSource

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

func (*NicFirmwareSource) DeepCopyInto added in v0.1.18

func (in *NicFirmwareSource) DeepCopyInto(out *NicFirmwareSource)

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

func (*NicFirmwareSource) DeepCopyObject added in v0.1.18

func (in *NicFirmwareSource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicFirmwareSourceList added in v0.1.18

type NicFirmwareSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NicFirmwareSource `json:"items"`
}

NicFirmwareSourceList contains a list of NicFirmwareSource

func (*NicFirmwareSourceList) DeepCopy added in v0.1.18

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

func (*NicFirmwareSourceList) DeepCopyInto added in v0.1.18

func (in *NicFirmwareSourceList) DeepCopyInto(out *NicFirmwareSourceList)

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

func (*NicFirmwareSourceList) DeepCopyObject added in v0.1.18

func (in *NicFirmwareSourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicFirmwareSourceSpec added in v0.1.18

type NicFirmwareSourceSpec struct {
	// BinUrlSources represents a list of url sources for ConnectX Firmware
	// +kubebuilder:validation:MinItems=1
	// +optional
	BinUrlSources []string `json:"binUrlSources,omitempty"`
	// BFBUrlSource represents a url source for BlueField Bundle
	// +optional
	BFBUrlSource string `json:"bfbUrlSource,omitempty"`
}

NicFirmwareSourceSpec represents a list of url sources for FW +kubebuilder:validation:XValidation:rule="size(self.binUrlSources) > 0 || size(self.bfbUrlSource) > 0",message="At least one of binUrlSources or bfbUrlSource must be specified"

func (*NicFirmwareSourceSpec) DeepCopy added in v0.1.18

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

func (*NicFirmwareSourceSpec) DeepCopyInto added in v0.1.18

func (in *NicFirmwareSourceSpec) DeepCopyInto(out *NicFirmwareSourceSpec)

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

type NicFirmwareSourceStatus added in v0.1.18

type NicFirmwareSourceStatus struct {
	// State represents the firmware processing state
	// +kubebuilder:validation:Enum=Downloading;Processing;Success;ProcessingFailed;DownloadFailed;CacheVerificationFailed
	// +required
	State string `json:"state"`
	// Reason shows an error message if occurred
	Reason string `json:"reason,omitempty"`
	// Versions is a map of available FW binaries versions to PSIDs
	// a PSID should have only a single FW version available for it
	BinaryVersions map[string][]string `json:"binaryVersions,omitempty"`
	// BFBVersions represents the FW versions available in the provided BFB bundle
	BFBVersions map[string]string `json:"bfbVersions,omitempty"`
}

NicFirmwareSourceStatus represents the status of the FW from given sources, e.g. version available for PSIDs

func (*NicFirmwareSourceStatus) DeepCopy added in v0.1.18

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

func (*NicFirmwareSourceStatus) DeepCopyInto added in v0.1.18

func (in *NicFirmwareSourceStatus) DeepCopyInto(out *NicFirmwareSourceStatus)

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

type NicFirmwareTemplate added in v0.1.18

type NicFirmwareTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NicFirmwareTemplateSpec `json:"spec,omitempty"`
	Status NicTemplateStatus       `json:"status,omitempty"`
}

NicFirmwareTemplate is the Schema for the nicfirmwaretemplates API

func (*NicFirmwareTemplate) DeepCopy added in v0.1.18

func (in *NicFirmwareTemplate) DeepCopy() *NicFirmwareTemplate

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

func (*NicFirmwareTemplate) DeepCopyInto added in v0.1.18

func (in *NicFirmwareTemplate) DeepCopyInto(out *NicFirmwareTemplate)

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

func (*NicFirmwareTemplate) DeepCopyObject added in v0.1.18

func (in *NicFirmwareTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicFirmwareTemplateList added in v0.1.18

type NicFirmwareTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NicFirmwareTemplate `json:"items"`
}

NicFirmwareTemplateList contains a list of NicFirmwareTemplate

func (*NicFirmwareTemplateList) DeepCopy added in v0.1.18

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

func (*NicFirmwareTemplateList) DeepCopyInto added in v0.1.18

func (in *NicFirmwareTemplateList) DeepCopyInto(out *NicFirmwareTemplateList)

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

func (*NicFirmwareTemplateList) DeepCopyObject added in v0.1.18

func (in *NicFirmwareTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NicFirmwareTemplateSpec added in v0.1.18

type NicFirmwareTemplateSpec struct {
	// NodeSelector contains labels required on the node. When empty, the template will be applied to matching devices on all nodes.
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// NIC selector configuration
	// +required
	NicSelector *NicSelectorSpec `json:"nicSelector"`
	// Firmware update template
	// +required
	Template *FirmwareTemplateSpec `json:"template"`
}

NicFirmwareTemplateSpec defines the FW templates and node/nic selectors for it

func (*NicFirmwareTemplateSpec) DeepCopy added in v0.1.18

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

func (*NicFirmwareTemplateSpec) DeepCopyInto added in v0.1.18

func (in *NicFirmwareTemplateSpec) DeepCopyInto(out *NicFirmwareTemplateSpec)

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

type NicSelectorSpec

type NicSelectorSpec struct {
	// Type of the NIC to be selected, e.g. 101d,1015,a2d6 etc.
	NicType string `json:"nicType"`
	// Array of PCI addresses to be selected, e.g. "0000:03:00.0"
	// +kubebuilder:validation:items:Pattern=`^0000:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}\.[0-7]$`
	PciAddresses []string `json:"pciAddresses,omitempty"`
	// Serial numbers of the NICs to be selected, e.g. MT2116X09299
	SerialNumbers []string `json:"serialNumbers,omitempty"`
}

NicSelectorSpec is a desired configuration for NICs

func (*NicSelectorSpec) DeepCopy

func (in *NicSelectorSpec) DeepCopy() *NicSelectorSpec

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

func (*NicSelectorSpec) DeepCopyInto

func (in *NicSelectorSpec) DeepCopyInto(out *NicSelectorSpec)

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

type NicTemplateStatus added in v0.1.18

type NicTemplateStatus struct {
	// NicDevice CRs matching this configuration / firmware template
	NicDevices []string `json:"nicDevices,omitempty"`
}

NicTemplateStatus defines the observed state of NicConfigurationTemplate and NicFirmwareTemplate

func (*NicTemplateStatus) DeepCopy added in v0.1.18

func (in *NicTemplateStatus) DeepCopy() *NicTemplateStatus

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

func (*NicTemplateStatus) DeepCopyInto added in v0.1.18

func (in *NicTemplateStatus) DeepCopyInto(out *NicTemplateStatus)

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

type PciPerformanceOptimizedSpec

type PciPerformanceOptimizedSpec struct {
	// Specifies whether to enable PCI performance optimization
	Enabled bool `json:"enabled"`
	// Specifies the PCIe Max Accumulative Outstanding read bytes
	MaxAccOutRead int `json:"maxAccOutRead,omitempty"`
	// Specifies the size of a single PCI read request in bytes
	// +kubebuilder:validation:Enum=128;256;512;1024;2048;4096
	MaxReadRequest int `json:"maxReadRequest,omitempty"`
}

PciPerformanceOptimizedSpec specifies PCI performance optimization settings

func (*PciPerformanceOptimizedSpec) DeepCopy

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

func (*PciPerformanceOptimizedSpec) DeepCopyInto

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

type QosSpec

type QosSpec struct {
	// Trust mode for QoS settings, e.g. trust-dscp
	Trust string `json:"trust"`
	// Priority-based Flow Control configuration, e.g. "0,0,0,1,0,0,0,0"
	// +kubebuilder:validation:Pattern=`^([01],){7}[01]$`
	PFC string `json:"pfc"`
}

QosSpec specifies Quality of Service settings

func (*QosSpec) DeepCopy

func (in *QosSpec) DeepCopy() *QosSpec

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

func (*QosSpec) DeepCopyInto

func (in *QosSpec) DeepCopyInto(out *QosSpec)

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

type RoceOptimizedSpec

type RoceOptimizedSpec struct {
	// Optimize RoCE
	Enabled bool `json:"enabled"`
	// Quality of Service settings
	Qos *QosSpec `json:"qos,omitempty"`
}

RoceOptimizedSpec specifies RoCE optimization settings

func (*RoceOptimizedSpec) DeepCopy

func (in *RoceOptimizedSpec) DeepCopy() *RoceOptimizedSpec

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

func (*RoceOptimizedSpec) DeepCopyInto

func (in *RoceOptimizedSpec) DeepCopyInto(out *RoceOptimizedSpec)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL