Skip to content

Commit 1f529ad

Browse files
authored
Merge pull request #681 from liuyuan10/rdma
add new RDMA DeviceMode
2 parents 4e9dcf3 + f1dbf64 commit 1f529ad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: crd/apis/network/v1/gkenetworkparamset_types.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ type GKENetworkParamSet struct {
2020
}
2121

2222
// DeviceModeType defines mode in which the devices will be used by the Pod
23-
// +kubebuilder:validation:Enum=DPDK-VFIO;NetDevice
23+
// +kubebuilder:validation:Enum=DPDK-VFIO;NetDevice;RDMA
2424
type DeviceModeType string
2525

2626
const (
2727
// DPDKVFIO indicates that NICs are bound to vfio-pci driver
2828
DPDKVFIO DeviceModeType = "DPDK-VFIO"
2929
// NetDevice indicates that NICs are bound to kernel driver and used as net device
3030
NetDevice DeviceModeType = "NetDevice"
31+
// RDMA indicates that NICs support RDMA
32+
RDMA DeviceModeType = "RDMA"
3133
)
3234

3335
// SecondaryRanges represents ranges of network addresses.

Diff for: crd/config/crds/networking.gke.io_gkenetworkparamsets.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ spec:
4848
enum:
4949
- DPDK-VFIO
5050
- NetDevice
51+
- RDMA
5152
type: string
5253
podIPv4Ranges:
5354
description: |-

0 commit comments

Comments
 (0)