From: Simon Xiao Date: Tue, 28 Apr 2015 08:05:17 +0000 (-0700) Subject: hv_netvsc: introduce netif-msg into netvsc module X-Git-Tag: omap-for-v4.2/omap1-v2~42^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f300ff41d89fe9674b8dbab950ba2572639ee8d;p=pandora-kernel.git hv_netvsc: introduce netif-msg into netvsc module 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 code, dump_rndis_message() will not dump anything but it still initialize some local variables and process the switch logic which is unnecessary, especially in high network throughput situation. Signed-off-by: Simon Xiao Reviewed-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang Signed-off-by: David S. Miller --- Reading git-diff-tree failed