[PATCH] um: vector: Fix NAPI budget handling
anton.ivanov at cambridgegreys.com
anton.ivanov at cambridgegreys.com
Fri Jul 5 07:25:17 PDT 2024
From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
Fix the handling of NAPI budget.
Signed-off-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>
---
arch/um/drivers/vector_kern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
index 53e825bcc6fa..18fb167e7bd8 100644
--- a/arch/um/drivers/vector_kern.c
+++ b/arch/um/drivers/vector_kern.c
@@ -968,7 +968,7 @@ static int vector_mmsg_rx(struct vector_private *vp, int budget)
budget = qi->max_depth;
packet_count = uml_vector_recvmmsg(
- vp->fds->rx_fd, qi->mmsg_vector, qi->max_depth, 0);
+ vp->fds->rx_fd, qi->mmsg_vector, budget, 0);
if (packet_count < 0)
vp->in_error = true;
--
2.39.2
More information about the linux-um
mailing list