From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wiles, Keith" Subject: Re: [PATCH v1] [net/tap] add logic to assign speed from user Date: Thu, 21 Dec 2017 13:38:25 +0000 Message-ID: <2893AEFC-6FD7-4D05-AB5B-F2AC018D1390@intel.com> References: <1513875200-5061-1-git-send-email-vipin.varghese@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "Yigit, Ferruh" , "Patel, Amol" , "Hunt, David" , "Jain, Deepak K" To: "Varghese, Vipin" Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9286F1B280 for ; Thu, 21 Dec 2017 14:38:29 +0100 (CET) In-Reply-To: <1513875200-5061-1-git-send-email-vipin.varghese@intel.com> Content-Language: en-US Content-ID: <4A74D88CCB43614CBF20E0B191829C92@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > On Dec 21, 2017, at 10:53 AM, Vipin Varghese w= rote: >=20 > TAP speed is passed as user argument, but never set to interface. > New logic brings speed get and set to LOCAL and REMOTE interfaces. >=20 > Updated the default PMD speeed to 10M as per Linux Kernel default > value. The problem in setting the link speed to 10M is that TAP will not limit its= traffic to 10M. Applications like pktgen and others use the Link speed to = calculate the bit rate, which will be broken now. I would suggest making the default value 10G or 40G instead as CPU speeds w= ill continue to increase. Forcing someone to always add the link speed seem= s a bit much when we know the systems can send/receive much higher then 10M= , which is the reason 10G was picked. Please set the default back to 10G or= some much higher number. >=20 > Signed-off-by: Vipin Varghese > --- > drivers/net/tap/rte_eth_tap.c | 185 +++++++++++++++++++++++++++++++++++++= ++++- > 1 file changed, 182 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.= c > index 6b27679..7238504 100644 > --- a/drivers/net/tap/rte_eth_tap.c > +++ b/drivers/net/tap/rte_eth_tap.c > @@ -62,6 +62,8 @@ > #include > #include > #include > +#include > +#include >=20 Regards, Keith