diff --git a/net/core/netpoll.c b/net/core/netpoll.c index d9e3d74ec9ac335cad79b923d87b8d2ea5edbcf6..2ad330e02967132369df3794a5c79e5142f7ebd6 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -158,6 +158,7 @@ static int poll_one_napi(struct napi_struct *napi, int budget) set_bit(NAPI_STATE_NPSVC, &napi->state); work = napi->poll(napi, budget); + WARN_ONCE(work > budget, "%pF exceeded budget in poll\n", napi->poll); trace_napi_poll(napi); clear_bit(NAPI_STATE_NPSVC, &napi->state);