From 63ba67c85bb8466e6ed4e3be9739977623d4fc26 Mon Sep 17 00:00:00 2001 From: Dustin Essington Date: Fri, 27 May 2016 14:28:13 -0500 Subject: [PATCH] Adjust the speed on the TUN/TAP interface SPEED_10 is almost unheard of in modern Networking. Since the TUN/TAP interface can exceed this value it breaks tools like sar that use the port's speed to calculate interface utilization. SPEED_100 is a more realistic number that you might see on a modern network, though SPEED_1000 is becoming more common now. --- drivers/net/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index e16487cc6a9ad7..acc1874952f48c 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -2397,7 +2397,7 @@ static int tun_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) { cmd->supported = 0; cmd->advertising = 0; - ethtool_cmd_speed_set(cmd, SPEED_10); + ethtool_cmd_speed_set(cmd, SPEED_100); cmd->duplex = DUPLEX_FULL; cmd->port = PORT_TP; cmd->phy_address = 0;