diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2018-03-16 15:44:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-17 20:10:27 -0400 |
commit | ec9663812f32c03e36c8c2ccc83e52dd5a7486d9 (patch) | |
tree | 07a44316a956f8124b43dea0abd3648e06a81cf1 /drivers/net/hyperv/rndis_filter.c | |
parent | hv_netvsc: pass netvsc_device to rndis halt (diff) | |
download | linux-dev-ec9663812f32c03e36c8c2ccc83e52dd5a7486d9.tar.xz linux-dev-ec9663812f32c03e36c8c2ccc83e52dd5a7486d9.zip |
hv_netvsc: add trace points
This adds tracepoints to the driver which has proved useful in
debugging startup and shutdown race conditions.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/rndis_filter.c')
-rw-r--r-- | drivers/net/hyperv/rndis_filter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 668680abaffb..2dc00f714482 100644 --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -31,6 +31,7 @@ #include <linux/rtnetlink.h> #include "hyperv_net.h" +#include "netvsc_trace.h" static void rndis_set_multicast(struct work_struct *w); @@ -241,6 +242,8 @@ static int rndis_filter_send_request(struct rndis_device *dev, pb[0].len; } + trace_rndis_send(dev->ndev, 0, &req->request_msg); + rcu_read_lock_bh(); ret = netvsc_send(dev->ndev, packet, NULL, pb, NULL); rcu_read_unlock_bh(); @@ -1087,6 +1090,8 @@ void rndis_set_subchannel(struct work_struct *w) init_packet->msg.v5_msg.subchn_req.op = NVSP_SUBCHANNEL_ALLOCATE; init_packet->msg.v5_msg.subchn_req.num_subchannels = nvdev->num_chn - 1; + trace_nvsp_send(ndev, init_packet); + ret = vmbus_sendpacket(hv_dev->channel, init_packet, sizeof(struct nvsp_message), (unsigned long)init_packet, |