Skip to content

Commit

Permalink
specs-go/config: Made RDMA controller parameters as pointers
Browse files Browse the repository at this point in the history
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 <parav@mellanox.com>
  • Loading branch information
paravmellanox committed Dec 8, 2017
1 parent 106312c commit a1acc47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ type LinuxNetwork struct {
// LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11)
type LinuxRdma struct {
// Hca device name whose resources to be restricted
HcaDevice string `json:"hca_device"`
HcaDevice string `json:"hca_device,omitempty"`
// Maximum number of HCA handles that can be opened. Default is "no limit".
HcaHandles uint32 `json:"hca_handles"`
HcaHandles *uint32 `json:"hca_handles,omitempty"`
// Maximum number of HCA objects that can be created. Default is "no limit".
HcaObjects uint32 `json:"hca_objects"`
HcaObjects *uint32 `json:"hca_objects,omitempty"`
}

// LinuxResources has container runtime resource constraints
Expand Down

0 comments on commit a1acc47

Please sign in to comment.