From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 79AB4A0506 for ; Tue, 29 Mar 2022 10:56:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F89C41151; Tue, 29 Mar 2022 10:56:48 +0200 (CEST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id D171D40691 for ; Tue, 29 Mar 2022 10:56:46 +0200 (CEST) Received: by mail-lf1-f52.google.com with SMTP id d5so29082428lfj.9 for ; Tue, 29 Mar 2022 01:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7jfxPMnTS1hDUIZ9pMRMh5bSP6ain0D6pmwrNWzArZI=; b=fXw/JXUgEoY8UhkAvpo/8AJLWVY24+t4Bs2/YUh94LOboldfu6fkCnZXZKy7c1DvBm sxQC4hgY+AMukLk49E+yvepfx65niKF+65YQgYj5xHNi4BFdTX4latE15y8wLucOkEIT 9fkrLNiiK7xpIRsc/tmhpp4j0/dNLXa2B+6vl3XpeVO0YZPv9RmOqWSkr0Pi43O5JZCn y6za94q02EB/LfD3mYQzLHnKOHG+ZNiA6ZSS08S3O/Zhee29WlWFEm0QV4Fd+IZPunqY XIW2Fxkgqeb9b2/sAHRugGxJohYYZZK1UdLDeSykwpEztvuUPl3SphMbHXxaiedn/KMB yPUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7jfxPMnTS1hDUIZ9pMRMh5bSP6ain0D6pmwrNWzArZI=; b=RYFVqclCSLvv3WybcmF6u8OSQonOyfzFOch7NqiG83vXedvFZ9ee0jJ0ystFpOFSUG wy1DjZcNxuUZsFuAGcwIms5+Aryx4o7tuPALIR8XAD5BhABqbeuHY3xoY5GlKlUlUAck bzeQ6TJ8caBgMKlj0WyZZyUsU+Qz20D20Rt8E8Iek984oHGwGSEIrmMAZ+6i8Lvu5yx9 M1bQeiKZQpWODBNaDTVNL9MN6DE+DjQyrUnAEqTw21s1BQ5L8gYmAb1DYQzcXAeRj6oL 6Duzvu1njM4Q7VMhs8R+iUzAgJWALJbd0DKZWP0ixnWHoM4AyYpkRHWMakREqcQGjq3n 51Tw== X-Gm-Message-State: AOAM5300ErQ48K93vu/CwzFqDqIHRP8RpT4o1X3GvtY2TUhVNY9E6xMT v34UBJ1+dw/qK4aETYO1lxIkoVgZBJz8G6/TbOmmkfLhu5dH3g== X-Google-Smtp-Source: ABdhPJw55dEvsdi3UD9HWecxN0KmIFStbT31rZ6ZpcPoq0MDAcgtPliAUk0Pu+XKBhNytG2Or6R1lpfYpLjsPkOHLj8= X-Received: by 2002:a05:6512:15a3:b0:44a:54eb:937e with SMTP id bp35-20020a05651215a300b0044a54eb937emr1695191lfb.456.1648544206350; Tue, 29 Mar 2022 01:56:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0KHRgtC10L/QsNC90L7Qsg==?= Date: Tue, 29 Mar 2022 11:56:35 +0300 Message-ID: Subject: Re: Unable to run dpdk -dumpcap with Mellanox To: Ariba Ehtesham Cc: "users@dpdk.org" Content-Type: multipart/alternative; boundary="000000000000d0f1c205db579b74" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000d0f1c205db579b74 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Have you allocated huge pages? http://doc.dpdk.org/guides/linux_gsg/sys_reqs.html#use-of-hugepages-in-the-= linux-environment Check huge pages using ./dpdk-hugepages.py -s =D0=B2=D1=82, 29 =D0=BC=D0=B0=D1=80. 2022 =D0=B3. =D0=B2 11:21, Ariba Ehtes= ham : > Hi , > Can someone please guide me about dpdk dumpcap application with testpmd . > while running application I am getting following errors: > > sudo ./build/app/dpdk-dumpcap -i 04:00.1 -w /tmp/capture.pcapng > Device 0000:04:00.0 is not driven by the primary process > mlx5_net: can not attach rte ethdev > mlx5_net: probe of PCI device 0000:04:00.0 aborted after encountering an > error: Cannot allocate memory > mlx5_common: Failed to load driver mlx5_eth > EAL: Requested device 0000:04:00.0 cannot be used > Device 0000:04:00.1 is not driven by the primary process > mlx5_net: can not attach rte ethdev > mlx5_net: probe of PCI device 0000:04:00.1 aborted after encountering an > error: Cannot allocate memory > mlx5_common: Failed to load driver mlx5_eth > EAL: Requested device 0000:04:00.1 cannot be used > Device 0000:81:00.0 is not driven by the primary process > mlx5_net: can not attach rte ethdev > mlx5_net: probe of PCI device 0000:81:00.0 aborted after encountering an > error: Cannot allocate memory > mlx5_common: Failed to load driver mlx5_eth > EAL: Requested device 0000:81:00.0 cannot be used > Device 0000:81:00.1 is not driven by the primary process > mlx5_net: can not attach rte ethdev > mlx5_net: probe of PCI device 0000:81:00.1 aborted after encountering an > error: Cannot allocate memory > mlx5_common: Failed to load driver mlx5_eth > EAL: Requested device 0000:81:00.1 cannot be used > EAL: Error - exiting with code: 1 > Cause: No Ethernet ports found > > *Commands :* > *dpdk -22.03* > > *sudo ./build/app/dpdk-dumpcap -i 04:00.1 -w /tmp/capture.pcapng * > > > *sudo ./build/app/dpdk-testpmd -c 0xf0 -n 4 -a 04:00.1 -- -i > --port-topology=3Dchained * > > > > Regards, > Ariba Ehtesham > > --000000000000d0f1c205db579b74 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you allocated huge pages?=C2=A0http://doc.dpdk.org/guides/linux_gsg/sys_reqs.html#use-of-hugepages= -in-the-linux-environment
Check huge pages using ./dpdk-hugepages.p= y -s=C2=A0

=D0=B2=D1=82, 29 =D0=BC=D0=B0=D1=80. 2022 =D0=B3. =D0=B2 11= :21, Ariba Ehtesham <ariba@dre= ambigsemi.com>:
Hi ,
Can someone=C2=A0please guide me about dpdk dumpcap application with testpm= d .
while running application I am getting following errors:

sudo ./build/app/dpdk-dumpcap =C2=A0-i 04:00.1 -w /tmp/capture.pcapng
Device 0000:04:00.0 is not driven by the primary process
mlx5_net: can not attach rte ethdev
mlx5_net: probe of PCI device 0000:04:00.0 aborted after encountering = an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:04:00.0 cannot be used
Device 0000:04:00.1 is not driven by the primary process
mlx5_net: can not attach rte ethdev
mlx5_net: probe of PCI device 0000:04:00.1 aborted after encountering = an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:04:00.1 cannot be used
Device 0000:81:00.0 is not driven by the primary process
mlx5_net: can not attach rte ethdev
mlx5_net: probe of PCI device 0000:81:00.0 aborted after encountering = an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:81:00.0 cannot be used
Device 0000:81:00.1 is not driven by the primary process
mlx5_net: can not attach rte ethdev
mlx5_net: probe of PCI device 0000:81:00.1 aborted after encountering = an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:81:00.1 cannot be used
EAL: Error - exiting with code: 1
=C2=A0 Cause: No Ethernet ports found

Commands :
dpdk -22.03
sudo ./build/app/dpdk-dumpcap =C2=A0-i 04:00.1 -w /tmp/capture.pca= png

sudo ./build/app/dpdk-testpmd -c 0xf0 -n 4 -a 04:00.1 -- -i --port= -topology=3Dchained



Regards,
Ariba Ehtesham

--000000000000d0f1c205db579b74--