net: missing call of trace_napi_poll in busy_poll_stop
authorJesper Dangaard Brouer <brouer@redhat.com>
Fri, 25 Aug 2017 13:04:32 +0000 (15:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 18:22:21 +0000 (11:22 -0700)
Noticed that busy_poll_stop() also invoke the drivers napi->poll()
function pointer, but didn't have an associated call to trace_napi_poll()
like all other call sites.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index ce15a06d5558af0292cc739b42a7dc3c1d89428d..818dfa6e7ab5cf8e72efa676829ada432507ef44 100644 (file)
@@ -5289,6 +5289,7 @@ static void busy_poll_stop(struct napi_struct *napi, void *have_poll_lock)
         * Ideally, a new ndo_busy_poll_stop() could avoid another round.
         */
        rc = napi->poll(napi, BUSY_POLL_BUDGET);
+       trace_napi_poll(napi, rc, BUSY_POLL_BUDGET);
        netpoll_poll_unlock(have_poll_lock);
        if (rc == BUSY_POLL_BUDGET)
                __napi_schedule(napi);