From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 01F8DC12C for ; Wed, 22 Jun 2016 14:31:49 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id f126so85781158wma.1 for ; Wed, 22 Jun 2016 05:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=erWq0SPHVaQoM491UG0jpZi0+Qb4lM8lKR3UyQIxI2U=; b=YTlot+w2LAgtQryZ55Fxh1IislqlSdvlq/0f/R5ZbBnAE/TLGqqHGR6JRKRzjFFKh9 eOqHlsqgp5BRFDyWs4IWkAjGRKNRmpiq+c+RxecwiaVDN1tdQGNY09PppUZgqOPWCRdE Nb5GVOOscXKfRICOCXNKMwkIPBnblgTdJ3cVScjgIFYjinOFJfJsVMSNvcEsk423RHJ7 mH+jJwb6/YwMgY/Wfs2zkVBDZOBemHYLiGBGuvz++o/jKuJ6T1RRd24CS6qTu7wmz5dM HpuZjTmHsghY3QoKsP2HK0tRN1FSbOYUWMHfNKDpEUWkdLND2lyKwBEN5ZwVvtklw6Rc 1sQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=erWq0SPHVaQoM491UG0jpZi0+Qb4lM8lKR3UyQIxI2U=; b=UcMqLzPgCDOMJjbERf6wu72QDoMdCpScq0Dir0ZvGp92ZTAW36BqJBy/g+HvAdmkNL Z7Re1q/WVDuHFESH8hOGEa17QU9TOZno2Vn/5EW/vgq/rH7YoYiZ7X/7Q4fbaj/FbMqb HhyCZ6g0sDjdTesaPM0TBwj6rnRSgDhNMMpqrCUCXZONJCs0ZgBzMTvwzTBVSTjHNsaU oJuzsaC8fbvNs/mndennIk4AMGoSzcr63tz3cJmjkqb/rgAgI6OFPS3isWOkT4L3fLGo WVRgBIthkyUGZkifXo/SNapDPuEe6IR4gE3+XWFxI8MsmQZmIIgsPU7E3hLdm0vyuUIh KfwQ== X-Gm-Message-State: ALyK8tIE/xp4PB67Gfhb4qQ87Uzsu8+UAVHt4VYq2BVROByuECx0q/+qHQQ3NvBxYM71fciF X-Received: by 10.194.113.136 with SMTP id iy8mr24681426wjb.174.1466598708585; Wed, 22 Jun 2016 05:31:48 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id o10sm73689414wjz.37.2016.06.22.05.31.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2016 05:31:47 -0700 (PDT) From: Thomas Monjalon To: Gadre Nayan Cc: users@dpdk.org, dev@dpdk.org, ferruh.yigit@intel.com, remy.horton@intel.com Date: Wed, 22 Jun 2016 14:31:45 +0200 Message-ID: <3723042.ZWhDuQsRp0@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-users] Get interface speed through IOCTL X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2016 12:31:49 -0000 2016-06-22 17:49, Gadre Nayan: > I need to get the interface speed though standard IOCTL call: [...] > > However, for 10G interface I do not read a correct speed, since it may > not be supported. Yes > Out 1G cards are I350 and 10G card is I40. [...] > There is no support for 10000base. So to get the ioctl working for 10G > card, is it a trivial change of adding few more support options and > adding another case SPEED_10000 clause, or is it more involved ? You are talking about KNI which has some old ethtool support for some igb and ixgbe NICs. My opinion is that we should drop this ethtool support which do not compile everywhere and has a very limited support. If you want to get the speed information, you have several other ways to explore: - communicating with the DPDK application - make a secondary application process - add the feature in the secondary process app/proc_info - use examples/ethtool (and check if it can be promoted in lib/) - implement a kernel module upstream If you just need to get the speed info, I feel app/proc_info would be a good idea.