mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
clh: remove not requried values
- ip and mask are not needed anymore. - fs queues are set by cloud-hypervisor. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
e9a852dd79
commit
9c3151e5ed
@ -48,8 +48,6 @@ const (
|
||||
// Values are mandatory by http API
|
||||
// Values based on:
|
||||
// github.com/cloud-hypervisor/cloud-hypervisor/blob/v0.3.0/vmm/src/config.rs#L395
|
||||
clhFsQueues = 1
|
||||
clhFsQueueSize = 1024
|
||||
clhTimeout = 10
|
||||
clhAPITimeout = 1
|
||||
clhStopSandboxTimeout = 3
|
||||
@ -1042,12 +1040,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
|
||||
@ -1067,8 +1060,6 @@ func (clh *cloudHypervisor) addVolume(volume types.Volume) error {
|
||||
Tag: volume.MountTag,
|
||||
CacheSize: int64(clh.config.VirtioFSCacheSize << 20),
|
||||
Sock: vfsdSockPath,
|
||||
NumQueues: clhFsQueues,
|
||||
QueueSize: clhFsQueueSize,
|
||||
},
|
||||
}
|
||||
} else {
|
||||
@ -1076,8 +1067,6 @@ func (clh *cloudHypervisor) addVolume(volume types.Volume) error {
|
||||
{
|
||||
Tag: volume.MountTag,
|
||||
Sock: vfsdSockPath,
|
||||
NumQueues: clhFsQueues,
|
||||
QueueSize: clhFsQueueSize,
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user