Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
clh: remove not requried values
Browse files Browse the repository at this point in the history
- ip and mask are not needed anymore.
- fs queues are set by cloud-hypervisor

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
  • Loading branch information
jcvenegas committed Dec 10, 2019
1 parent ba8b179 commit fff25d9
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions virtcontainers/clh.go
Original file line number Diff line number Diff line change
Expand Up @@ -1038,12 +1038,7 @@ func (clh *cloudHypervisor) addNet(e Endpoint) {
"tap": tapPath,
}).Info("Adding Net")

// FIXME: This is required by CH
// remove after PR is merged:
// https://github.com/cloud-hypervisor/cloud-hypervisor/pull/480
ip := "0.0.0.0"
mask := "0.0.0.0"
clh.vmconfig.Net = append(clh.vmconfig.Net, chclient.NetConfig{Mac: mac, Tap: tapPath, Ip: ip, Mask: mask})
clh.vmconfig.Net = append(clh.vmconfig.Net, chclient.NetConfig{Mac: mac, Tap: tapPath})
}

// Add shared Volume using virtiofs
Expand All @@ -1063,17 +1058,13 @@ func (clh *cloudHypervisor) addVolume(volume types.Volume) error {
Tag: volume.MountTag,
CacheSize: int64(clh.config.VirtioFSCacheSize << 20),
Sock: vfsdSockPath,
NumQueues: clhFsQueues,
QueueSize: clhFsQueueSize,
},
}
} else {
clh.vmconfig.Fs = []chclient.FsConfig{
{
Tag: volume.MountTag,
Sock: vfsdSockPath,
NumQueues: clhFsQueues,
QueueSize: clhFsQueueSize,
Tag: volume.MountTag,
Sock: vfsdSockPath,
},
}

Expand Down

0 comments on commit fff25d9

Please sign in to comment.