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 108FFA0540 for ; Tue, 14 Jul 2020 18:29:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D303C1C437; Tue, 14 Jul 2020 18:29:14 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by dpdk.org (Postfix) with ESMTP id 799901C2F0 for ; Tue, 14 Jul 2020 18:29:12 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id k4so7221779pld.12 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=bjHSf+o506NSOiEWaisrU0aTy+mfFoww6+bB5PudWlPTLec7L1xgqRqa4kVfE0Zpxl EAqFvuSbN3oT6SnjsAdhjJjr8TlG0RkHB9mL2C4OXp0/jIVp4qYPeJ641msmrO2P4x95 KCW9yG3WQT/Uf7Dmh28gg16qIawVTOCJHiuxD4iFGRc0kBCMzyKXkg9oRrweovbYs974 MsGTdWe2RtxZtmVUa5cr5pD7KGJTBP0WiYiQ/lqQ+ApRNeJQeXAMiTc6YuZm6KpQZGPY N1jQl/L7N0fOZou3K4TFB4cioYbnRlT/EDYobCqRYAmS0zhLYS3sXMH1EekygLvq/j2S seQg== X-Gm-Message-State: AOAM530lEI76CXyii2rb5l00wQyl3WR1tjxNnf0l1CliaU/N+Bn5Kysk tgimsRGK2wFKzcjPxKZsWbsFNODSObpiDQ== 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-users] [dpdk-dev] DPDK PDUMP Issue X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" 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.