Add ethtool message level control support. This is the standard way
to enable/disable console log messages. Also, ratelimit the too much
work at interrupt message, so if under massive packet load the console
doesn't get flooded.
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
diff -Nru a/drivers/net/r8169.c b/drivers/net/r8169.c
--- a/drivers/net/r8169.c 2005-03-09 11:25:04 -08:00
+++ b/drivers/net/r8169.c 2005-03-09 11:25:04 -08:00
@@ -188,6 +188,9 @@
MODULE_DEVICE_TABLE(pci, rtl8169_pci_tbl);
static int rx_copybreak = 200;
+static int debug = 3;
+static const u32 default_msg = NETIF_MSG_DRV | NETIF_MSG_PROBE |
+ NETIF_MSG_LINK | NETIF_MSG_IFUP| NETIF_MSG_IFDOWN;