]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/core/netpoll.c
dropmon: add ability to detect when hardware dropsrxpackets
[net-next-2.6.git] / net / core / netpoll.c
index 64f51eec6576290e3b2df361316ee5448396642d..00b14e2c50ed3fa1cb39dd0d9c834a6f51bdbab6 100644 (file)
@@ -24,6 +24,7 @@
 #include <net/tcp.h>
 #include <net/udp.h>
 #include <asm/unaligned.h>
+#include <trace/napi.h>
 
 /*
  * We maintain a small pool of fully-sized skbs, to make sure the
@@ -137,6 +138,7 @@ static int poll_one_napi(struct netpoll_info *npinfo,
        set_bit(NAPI_STATE_NPSVC, &napi->state);
 
        work = napi->poll(napi, budget);
+       trace_napi_poll(napi->dev);
 
        clear_bit(NAPI_STATE_NPSVC, &napi->state);
        atomic_dec(&trapped);