Skip to content

Commit a1acc47

Browse files
committed
specs-go/config: Made RDMA controller parameters as pointers
Made RDMA controler parameters as pointers so that they can be treated as optional where NIL indicates do not process the parameter. Signed-off-by: Parav Pandit <[email protected]>
1 parent 106312c commit a1acc47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs-go/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,11 @@ type LinuxNetwork struct {
323323
// LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11)
324324
type LinuxRdma struct {
325325
// Hca device name whose resources to be restricted
326-
HcaDevice string `json:"hca_device"`
326+
HcaDevice string `json:"hca_device,omitempty"`
327327
// Maximum number of HCA handles that can be opened. Default is "no limit".
328-
HcaHandles uint32 `json:"hca_handles"`
328+
HcaHandles *uint32 `json:"hca_handles,omitempty"`
329329
// Maximum number of HCA objects that can be created. Default is "no limit".
330-
HcaObjects uint32 `json:"hca_objects"`
330+
HcaObjects *uint32 `json:"hca_objects,omitempty"`
331331
}
332332

333333
// LinuxResources has container runtime resource constraints

0 commit comments

Comments
 (0)