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:
Bowen Wang
2025-04-27 11:27:27 +08:00
committed by GUIDINGLI
parent 7ba6425933
commit 109a3a090c
+2 -3
View File
@@ -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);