From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by dpdk.org (Postfix) with ESMTP id C45688E80 for ; Tue, 20 Oct 2015 15:50:43 +0200 (CEST) Received: by obbwb3 with SMTP id wb3so14400464obb.0 for ; Tue, 20 Oct 2015 06:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=33OJEVcpOIud0ZDAC4xDr9mGfeqOco9VDTJX1MeenjA=; b=rK+0MEwvHzA9H9iGXmSbdI3RYG20t6ge9vMDebyHaZGIoNVGy2TvPdDR2gBYn76yNU B5NBmqpQ2H5C42gLiX3yONhli81i5XkIywPBlqeGN4CXxUC4mU1h9iqZ4XYYPJVFKPJi CFoVd3alvGUkFiBYsJ9IIK36kh8u/nNAgxZbjTrHg0vtxhBRTfyGVoDEiqbgdrNbqjIO jHUnvruH9hzRamBLcq67eIZVBQ1N82r8DxSeGCDCpyaroWTHLsHJn6xtemEyOJRYJwJw BerKt4oyqtuz/Ly5UGPsOCWHha4D1u0CwWxr3vAYHBQcJ0GzqUGggRrZ6Cb5nFR0ppWT rqKA== MIME-Version: 1.0 X-Received: by 10.182.120.39 with SMTP id kz7mr1883789obb.82.1445349043269; Tue, 20 Oct 2015 06:50:43 -0700 (PDT) Received: by 10.76.175.72 with HTTP; Tue, 20 Oct 2015 06:50:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Oct 2015 09:50:43 -0400 Message-ID: From: Kyle Larose To: =?UTF-8?B?7LWc7J217ISx?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org Subject: Re: [dpdk-dev] When I run test-pmd, most of received packets(loop-backed packet) have RX-error. 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: Tue, 20 Oct 2015 13:50:44 -0000 On Tue, Oct 20, 2015 at 2:12 AM, =EC=B5=9C=EC=9D=B5=EC=84=B1 wrote: > Dear DPDK experts. > > Thank you very much for your best great efforts and precious answers. > > > When I run test-pmd, most of received packets are RX-error. > > The computer has two 10GbE ports Intel NIC and the two ports are loop-bac= ked each other. > > The result shows that the loop-backed packets have rx-error occured from = ethernet device port. > > The rx-error ( ierrors) seems to be counted by rte_eth_stats_get(uint8_t = port_id, struct rte_eth_stats *stats) function in ~/dpdk/lib/librte_ether/r= te_ethdev.c > > Then this rte_eth_stats_get() function calls (*dev->dev_ops->stats_= get)(dev, stats); > > However, I can't find and trace the function (*dev->dev_ops->stats_= get)(). > > Would you tell me how can I find the function? > > Would you tell me why this receive errors occurs for what reasons? > > > I tested it in two xeon computers with different OS. > > Fedora 22 (linux kernel version 4.2.3-200.fc22.x86_64, DPDK 2.1.0). > Ubuntu 14.04.1 LTS(linux kernel version : 3.13.0-34-generic, DPDK 2.1.= 0). > > Both experiments show the same result with rx-errors. > > I will really appreciate if I can be given any advice and answers. > > Thank you very much. > > Sincerely Yours, > > Ick-Sung Choi. > Hello, I don't know the reason for your errors, but I can probably help with the function. I usually do this in two ways. One way is to identify the driver, and then look for instances of "struct eth_dev_ops" in it. For example, if you have an ixgbe/82599/etc, the driver is the ixgbe. Searching in the directory for it, you find this: http://dpdk.org/browse/dpdk/tree/drivers/net/ixgbe/ixgbe_ethdev.c#n389 Another alternative is to attach to your running process with gdb, and print the dev struct. gdb will typically map the pointers contained therein to their symbolic names.