From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhu Yanjun Subject: [PATCH V2 0/1] tun: dynamically set speed of tun Date: Fri, 13 Feb 2015 11:35:51 +0800 Message-ID: <1423798552-7091-1-git-send-email-Yanjun.Zhu@windriver.com> Mime-Version: 1.0 Content-Type: text/plain To: , , , , , Return-path: Received: from mail1.windriver.com ([147.11.146.13]:33026 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbbBMDhC (ORCPT ); Thu, 12 Feb 2015 22:37:02 -0500 Sender: netdev-owner@vger.kernel.org List-ID: V2: Follow the advice from Sergei, a new patch is made. V1: The default speed of tun is 10M while the normal nic speed is 1000M. When the speed of tun is accessed by the userspace application, the default 10M is not proper. In this case, the default tun speed is changed to 1000M. And this speed can be dynamically configured by the command "ethtool -s tunX speed 10/100/1000". Zhu Yanjun (1): tun: change speed from 10M to dynamically configured drivers/net/tun.c | 42 +++++++++++++++++++++++++++++++++++++++++- include/uapi/linux/if_tun.h | 5 +++++ 2 files changed, 46 insertions(+), 1 deletion(-) -- 1.9.1