From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id C737BC12C for ; Wed, 22 Jun 2016 14:31:48 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id a66so3861587wme.0 for ; Wed, 22 Jun 2016 05:31:48 -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=dv9AkpEZAYJ7rxi/2u9BjUd0QhwpAcEEjQonPpDjT5lWajRMBToq/+ri8kpAvsvXvf 5yo76CaxbdcpU46ODud41XdsiiwfiUuDPYVwU32lnr9N7vNivwP1uCDS/eGcrp1/GoHt Xg6egBGQq999R50fEpVTNwdqKDRotrSoVbJyv3YrukcDfHsUs0i+4bRcaAz5PjeIbpi8 SPRmxGe+ltWVjdHmzOqcsI4wOKUbTAt1KfIxqYSsYTlDOoBFL4XQ9Zlsbmb+WkfnfS88 vOcKiw7sWoM8XktbyMsDZ4Ssvuvj9Rr2ZyE+gXn7UeTTY7NNbur706HeCbCUWSxfjoHk HWtw== X-Gm-Message-State: ALyK8tKVHxDI1ZACa7b+bNmjJkizJUpZ36+INT0mYphwj2+ddI0tgcbKc7UqFWrr6cqfiO60 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-dev] [dpdk-users] Get interface speed through IOCTL X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2016 12:31:48 -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.