mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
rptun: add buffer check in RX IRQ
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -324,7 +324,10 @@ static int rptun_callback(FAR void *arg, uint32_t vqid)
|
||||
if (vqid == RPTUN_NOTIFY_ALL ||
|
||||
vqid == vdev->vrings_info[rvq->vq_queue_index].notifyid)
|
||||
{
|
||||
rptun_wakeup_rx(priv);
|
||||
if (rptun_buffer_nused(&priv->rvdev, true))
|
||||
{
|
||||
rptun_wakeup_rx(priv);
|
||||
}
|
||||
}
|
||||
|
||||
if (vqid == RPTUN_NOTIFY_ALL ||
|
||||
|
||||
Reference in New Issue
Block a user