[PATCH net-next, 1/1] hv_netvsc: use per_cpu stats to calculate TX/RX data

2015-05-12 Thread sixiao
From: Simon Xiao Current code does not lock anything when calculating the TX and RX stats. As a result, the RX and TX data reported by ifconfig are not accuracy in a system with high network throughput and multiple CPUs (in my test, RX/TX = 83% between 2 HyperV VM nodes which have 8 vCPUs and 40G

[PATCH net-next, v3, 1/1] hv_netvsc: introduce netif-msg into netvsc module

2015-04-27 Thread sixiao
From: Simon Xiao 1. Introduce netif-msg to netvsc to control debug logging output and keep msg_enable in netvsc_device_context so that it is kept persistently. 2. Only call dump_rndis_message() when NETIF_MSG_RX_ERR or above is specified in netvsc module debug param. In non-debug mode, in current

[PATCH net-next, v2, 1/1] hv_netvsc: introduce netif-msg into netvsc module

2015-04-24 Thread sixiao
From: Simon Xiao 1. Introduce netif-msg to netvsc to control debug logging output and keep msg_enable in netvsc_device_context so that it is kept persistently. 2. Only call dump_rndis_message() when NETIF_MSG_RX_ERR or above is specified in netvsc module debug param. In non-debug mode, in current

[PATCH net-next, 1/1] hv_netvsc: call dump_rndis_message() only in netvsc debug mode

2015-04-21 Thread sixiao
From: Simon Xiao Signed-off-by: Simon Xiao Reviewed-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 3 +++ drivers/net/hyperv/netvsc_drv.c | 8 drivers/net/hyperv/rndis_filter.c | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff