From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by dpdk.org (Postfix) with ESMTP id 4B5CB1DB1 for ; Thu, 7 Jul 2016 07:52:46 +0200 (CEST) Received: by mail-it0-f41.google.com with SMTP id j185so92627275ith.0 for ; Wed, 06 Jul 2016 22:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mKKacbkDAtX02+n3eRew4sWcpTL0SlwDQmrgmuLZ2hc=; b=TbetIjDAALHGL6nX5+LKt/dqOvzP1VsRwy/NXHy2/48kwwzOKGhzVRx6N+FwraxVU3 AbgMepHySCbVnZF7vttD8uEvzfzI/Fn2RqIL7iuU32TJCU/aPE7VeQeDV4dnWNPXc9yE iPuH+3bFPeKIoPaAQW838YbVjO7Tx+EyUY9Vkljm81UJXiav+8Nn71lmrvEZ6auGkaYQ 0W0IUl8YHFarOCMS99kSkUyTs5guI3ZuMu98MIHv6juM1kTAxmfKFw15Mj0OoK2HouHh bNlXPBywFH1PzZaGXL55b5FORCWL14jnPH1E313ga692k38rrOwopgGbVepHpOa7RXV9 i67g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mKKacbkDAtX02+n3eRew4sWcpTL0SlwDQmrgmuLZ2hc=; b=OUhGyC5aVvFnJiej6hqNFAtY4CsFQkkUlaGLMnBYG+JzQlnw9D+/RCa6OkIGnhk1yO iHb+ryzLdYhr4XWyfNxxU1ToFcQ3whDha+AD/BuHVG0Nbz0Z4bMq/t0djNw2leQAd9Yq K08GQET7CzIzXiwrrcWc8UBiobCxcDcXWBicacnmz2S5fWUgpvCADBeaR5gcENYgG5Gh oHEjDXlLNH9xQb94/jqYxE9NZHlmg6QEl/2t6UAQ/2gUxHwA5KeDixHR9xtD0CrN2Zd4 rbmCBfHIWbouXgGcLdITWGS34AOU5bWUTibAabyH2Y1FSMgtrwC2M/No2+j8nufspaBu zJMA== X-Gm-Message-State: ALyK8tKCp7G7qyvoscs552D2VcvMivRdvGoSMHDmHn1NrAgHcZEjgmZaCCwk38hDB1fbkXqYHuffGvBK/uj+AA== X-Received: by 10.36.61.201 with SMTP id n192mr11304779itn.92.1467870765681; Wed, 06 Jul 2016 22:52:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.50.5 with HTTP; Wed, 6 Jul 2016 22:52:45 -0700 (PDT) In-Reply-To: References: From: Bill Bonaparte Date: Thu, 7 Jul 2016 13:52:45 +0800 Message-ID: To: Jay Rolette Cc: DPDK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Help: How to read packet statistics from device registers via dpdk PMD? 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: Thu, 07 Jul 2016 05:52:46 -0000 I am so happy to get your reply. My dpdk version is 2.1=EF=BC=8Cand the OS is centOS 7=E3=80=82 the following is the output from "dpdk_nic_bind.py --status": [root@APV35 ~]# dpdk_nic_bind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:04:00.0 'VMXNET3 Ethernet Controller' drv=3Digb_uio unused=3D 0000:0b:00.0 'VMXNET3 Ethernet Controller' drv=3Digb_uio unused=3D 0000:13:00.0 'VMXNET3 Ethernet Controller' drv=3Digb_uio unused=3D 0000:1b:00.0 'VMXNET3 Ethernet Controller' drv=3Digb_uio unused=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:03:00.0 'VMXNET3 Ethernet Controller' if=3Dens160 drv=3Dvmxnet3 unused=3Digb_uio *Active* Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I tried it on the physical mathine, it still does not work. the OS is centOS 7, too. [root@AN ~]# dpdk_nic_bind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:01:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=3Digb_uio unused=3D 0000:01:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=3Digb_uio unused=3D 0000:03:00.0 'I350 Gigabit Backplane Connection' drv=3Digb_uio unused=3D 0000:03:00.1 'I350 Gigabit Backplane Connection' drv=3Digb_uio unused=3D 0000:03:00.2 'I350 Gigabit Backplane Connection' drv=3Digb_uio unused=3D 0000:03:00.3 'I350 Gigabit Backplane Connection' drv=3Digb_uio unused=3D 0000:07:00.0 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:07:00.1 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:07:00.2 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:07:00.3 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:09:00.0 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:09:00.1 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:09:00.2 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:09:00.3 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D 0000:0c:00.0 'Device 0011' drv=3Digb_uio unused=3D 0000:0f:00.1 'I350 Gigabit Network Connection' drv=3Digb_uio unused=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:0f:00.0 'I350 Gigabit Network Connection' if=3Denp15s0f0 drv=3Digb unused=3Digb_uio *Active* Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On Tue, Jul 5, 2016 at 8:03 PM, Jay Rolette wrote: > > On Tue, Jul 5, 2016 at 2:35 AM, Bill Bonaparte > wrote: > >> Hi: >> I am a new fish, I have tried my best to find answer about my question o= n >> web, but I failed. so >> I come here to ask for your help. the below is my question: >> >> I found that dpdk provides a api rte_eth_stats_get to read packet >> statistics about the interface, includes total input/output >> unicast/multicast/brodcast packets/bytes. but the api does not work on >> VMxnet interface (which is a virtual interface in VMware machine). >> > > Probably something in your app or environment rather than in the API > itself. We run rte_eth_stats_get() against interfaces in VMware Fusion, > VirtualBox and real hardware and they all work generally. > > Need some info before anyone can help you much: > > * What version of DPDK are you running? > * What OS are you running on? > * Output from "dpdk_nic_bind.py --status"? > > Jay >