Commit 427d5838 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: napi: remove useless stack trace



Whenever a buggy NAPI driver returns more than its budget,
we emit a stack trace that is of no use, since it does not
tell which driver is buggy.

Instead, emit a message giving the function name, and a
descriptive message.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e638025
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6683,7 +6683,9 @@ static int napi_poll(struct napi_struct *n, struct list_head *repoll)
		trace_napi_poll(n, work, weight);
	}

	WARN_ON_ONCE(work > weight);
	if (unlikely(work > weight))
		pr_err_once("NAPI poll function %pS returned %d, exceeding its budget of %d.\n",
			    n->poll, work, weight);

	if (likely(work < weight))
		goto out_unlock;