From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11FEBA0540; Tue, 14 Jul 2020 18:29:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5EE391C2F0; Tue, 14 Jul 2020 18:29:13 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by dpdk.org (Postfix) with ESMTP id 743B31C1BB for ; Tue, 14 Jul 2020 18:29:12 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id k5so7222614plk.13 for ; Tue, 14 Jul 2020 09:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ySg/o3geZyQJYSxyjozVwp+lddMtgtYSUD8yK39v8uo=; b=EB6d9uNERkjGXitYP0Uq3COsnKQNGKkhoMc+ukvvDqCzOZULhOh7aXpluR67bpd7U8 NJuCgw5jAPIPkKFW7j8jDmsNA33VvjUljiM8Ih/EAqjc5ieDsPdfAyYVhsIuDsEMwQS1 vzbmBiBW+90iv701aQQ7nm3AxTjmnYZGUprz8algIUrU0+4r+jFWGoAhAyZ7QZJGRTAn 6qmNMuqXVqDOXwYXY1HoBrkVvYtZaPThOC2fdbmsNbMvXOm4HJO8TnfSysvYoPIUKNmU GTmkcPGAvLwST1aVGBMSl689qpXZuUW/YeP+u9OwqD/T22QTSTU/KXcdTAwQg7VrHlJM tYaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ySg/o3geZyQJYSxyjozVwp+lddMtgtYSUD8yK39v8uo=; b=H3XzahT/e5Csv7k8GP1GIvOQyTdP+zazsUHjNChQKEi9PI8mGDgnFR8pX/XGTOujsY vdQjIFg8mAqpWCGNsrtpqy8CfAZAFdSuGffKxeVI1e3t2ttrGvuuLE76VBh90z17GWiZ lk1+bMHthS3qbAXGENEPtsR03yD4GDEIyFbE/YJ+o0xyqQwSk3nEBhXxtVnE2LlUGwT7 CEJ29xJdKJfG4Nzv7bCZxK0ErbB18Ey5r/tevgVxkjuAn9J9KmKRTzRlcAk9LFMsa6YY WVb15Obq1qBW3Ige3HlZkUr5atUG2aVVxkhzu2FMYqKa21tJXgDSxc+izpDeo+sy1xrE 81xw== X-Gm-Message-State: AOAM5305WABjrTeLoMhbYk0dwpDptFypl00h9dnqQxiZ+quOdudrPv/O s3vJmHDulv7eh86c2sBlX/Zh0g== X-Google-Smtp-Source: ABdhPJzEAdCawhr6tOWQB2zOGTmU+lNbvnDbZaYMFmkNTN80+Pt2MAf3UMed4eWXy2YTcJfv1eKyfg== X-Received: by 2002:a17:90a:f493:: with SMTP id bx19mr5080175pjb.134.1594744151367; Tue, 14 Jul 2020 09:29:11 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id lw5sm3271398pjb.37.2020.07.14.09.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 09:29:11 -0700 (PDT) Date: Tue, 14 Jul 2020 09:29:02 -0700 From: Stephen Hemminger To: Dikshant Chitkara Cc: "users@dpdk.org" , "dev@dpdk.org" , Amir Ilan , Veeresh Patil Message-ID: <20200714092902.31e95f83@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] DPDK PDUMP Issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 Tue, 14 Jul 2020 08:40:55 +0000 Dikshant Chitkara wrote: > Hi Team, > > We are facing an issue w.r.t to using DPDK PDUMP utility and want to check if you can help us in this regard. > > This issue is specific to DPDK 19.05 version or may be newer versions and was not found on DPDK 18.08 version. > > The issue is that when we built DPDK in shared library mode and try to run PDUMP we get following error on PDUMP console: > > EAL: Failed to hotplug add device > EAL: Error - exiting with code: 1 > Cause: vdev creation failed > > On Debugging above error message, I found that inside rte_dev_probe() function in the file lib/librte_eal/common/eal_common_dev.c , req.result = -14 which is non-zero value and points to enum EFAULT (Bad address) value, thus leading to above error. > > However, when I ran PDUMP in DPDK 18.08, I did not observe any such issue and it worked fine. > > DPDK was built with following flags set in config/common_base file: > > CONFIG_RTE_LIBRTE_PMD_PCAP=y > CONFIG_RTE_LIBRTE_PDUMP=y > > I ran PDUMP with testpmd as primary application and was trying to send some traffic on the Ethernet dpdk port using testpmd and capture it using pdump. > > Attached are the logs for both testpmd and pdump in both DPDK19_05 and DPDK_18_08 version for your reference. > > Let us know if you can help in this regard. > > Thanks, > Dikshant > Pdump runs as secondary process, what is your primary process. Is the secondary process using the same exact versions of DPDK and libraries as the primary process? The secondary process needs access to the same devices and drivers as the primary process to work.