Skip to content

Commit 671cd5e

Browse files
kot-begemot-ukrichardweinberger
authored andcommitted
um: vector: Fix NAPI budget handling
Fix the handling of NAPI budget. Signed-off-by: Anton Ivanov <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 612a8c8 commit 671cd5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/um/drivers/vector_kern.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ static int vector_mmsg_rx(struct vector_private *vp, int budget)
966966
budget = qi->max_depth;
967967

968968
packet_count = uml_vector_recvmmsg(
969-
vp->fds->rx_fd, qi->mmsg_vector, qi->max_depth, 0);
969+
vp->fds->rx_fd, qi->mmsg_vector, budget, 0);
970970

971971
if (packet_count < 0)
972972
vp->in_error = true;
@@ -1180,7 +1180,7 @@ static int vector_poll(struct napi_struct *napi, int budget)
11801180

11811181
if (tx_enqueued || err > 0)
11821182
napi_schedule(napi);
1183-
if (work_done < budget)
1183+
if (work_done <= budget)
11841184
napi_complete_done(napi, work_done);
11851185
return work_done;
11861186
}

0 commit comments

Comments
 (0)