mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
drivers/rptun: do not reserve memory for vring when vring->da is specified
When vring->da is specified, do not need reserve the memory for the vring, so do not need increase the shmbase and leave more share memory to the carveout. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -422,10 +422,9 @@ static int rptun_create_device(FAR struct rptun_priv_s *priv,
|
||||
role == VIRTIO_DEV_DRIVER)
|
||||
{
|
||||
vring->da = vring_da;
|
||||
shmbase += vring_sz;
|
||||
shmlen -= vring_sz;
|
||||
}
|
||||
|
||||
shmbase += vring_sz;
|
||||
shmlen -= vring_sz;
|
||||
}
|
||||
|
||||
vdev = remoteproc_create_virtio(&priv->rproc, index, role, NULL);
|
||||
|
||||
Reference in New Issue
Block a user