drop_monitor: fix trace_napi_poll_hit()
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Sun, 30 Aug 2009 20:10:43 +0000 (20:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2009 01:18:12 +0000 (18:18 -0700)
commitf2798eb4e01b095f273f4bf40f511c9d69c0e1da
tree480235ce9efabae5c0142617affa7a4b510ccf3a
parent3732e9bd2d841db588624b1bf560bfc9d0dcb1fd
drop_monitor: fix trace_napi_poll_hit()

The net_dev of backlog napi is NULL, like below:

__get_cpu_var(softnet_data).backlog.dev == NULL

So, we should check it in napi tracepoint's probe function

Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c