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 82D1E43C31 for ; Thu, 29 Feb 2024 09:51:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75D5E402EB; Thu, 29 Feb 2024 09:50:54 +0100 (CET) Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mails.dpdk.org (Postfix) with ESMTP id 50EA84027F for ; Thu, 22 Feb 2024 20:27:24 +0100 (CET) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41MGtl3U006258; Thu, 22 Feb 2024 19:27:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= from:to:cc:subject:date:message-id:references:in-reply-to :content-type:content-transfer-encoding:mime-version; s= qcppdkim1; bh=8+GpLuT58F53myGq57Pfgx/7f34cqBvOa/TZUblOsXI=; b=X+ twom/YDX7oZiYprLFgdYMSZq9njJPp8cKDnQGfSIHwETCxMC7AzIW7lhRHJGEuPf Z//B/72zMHgrdWuZ2IL7XawabxGNf6c+ZH42UgPe2nJHq5/QR1dw9c5dHAnGSlU7 NuKIk3t6dwnrsCaCg9hUTp/2EQDhAHSPHsN+g+Dz5DuWZ8So+MRK7utRFAh5eTHS sdjQ+iLXpAOUo0xhsUj+k0Idyi6wbvVOGCWMqK0lcZsp52uFDoLLM0lmtMeb9YDA NxSRl8irnjxoU8A90KV6YtCINhL/oRkf2xiulCkENDQVmCcJLSeYYOfz7ikmk0vx MxzB2zH0B/jPSV3sZ++A== Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2040.outbound.protection.outlook.com [104.47.57.40]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wea7crrb6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 19:27:23 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KMN1CUSBzMbKMNx/58hyZUyKPCNFFiBU7zlr7oTWR3DliuN8VeGSCQKjhA1AzOKFEbZ8v+Difioff4jHQe+vmadVtGuOpEfTlQS4KXl8j+/q8YhrzArT8m7Y5XpQJDmdNcvjVMr2b9s2Gk4DPOQQ0hkt3tL3ruGfZa918QXEvEvnIDT1vEF9wJuF6GS41SDyTnPtJH3+8K9zXrzyJfZK7rpKKPirW5UB5JZyGROfwpn9jYDTQsaaVTzkFkY03IC9G944yMdEG/rxnEex3Fck0JIwnVfzPsHT794lvsmjImYHpuGLYmF2FPbJOKJek5wYHWeLgEm0rv3oS6oTJREAcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8+GpLuT58F53myGq57Pfgx/7f34cqBvOa/TZUblOsXI=; b=TjJEYnSN3Rf4WOpoDTJukGpXeukk97SA4OaFVGge4ukwXCNpscHp7zYtTGuU0xxp5JJFmWzmiMKUboQQSwCF3CGeb2cSOYSSkRWyZ/tL1fFsBJTv+6trMZZrRxQWmxVFz6x0qT94HsCF8KMoP3HjbK+4hp+YHjznOMKz1w7dKvCRQakw5hyJmOD17Aw+MoaltIyZ/Bv9x+zLaFh5CeYosRZQFgGe5UB5RYdKWPN/mzbuiiTl/k1xYwKD+CEqUOEd/wngZ/elhhSBvecrtx8P/3zshTa3KfVQ/Tt+Q4gdPU9joCzx7f3kacv8wKONehucLSldKBXwgGI7P/OQsrdHPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=qti.qualcomm.com; dmarc=pass action=none header.from=qti.qualcomm.com; dkim=pass header.d=qti.qualcomm.com; arc=none Received: from CO6PR02MB8721.namprd02.prod.outlook.com (2603:10b6:303:134::12) by CYYPR02MB9711.namprd02.prod.outlook.com (2603:10b6:930:c8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Thu, 22 Feb 2024 19:27:01 +0000 Received: from CO6PR02MB8721.namprd02.prod.outlook.com ([fe80::ef09:dfd3:9291:f58e]) by CO6PR02MB8721.namprd02.prod.outlook.com ([fe80::ef09:dfd3:9291:f58e%6]) with mapi id 15.20.7292.036; Thu, 22 Feb 2024 19:27:01 +0000 From: Sameer Vaze To: Stephen Hemminger CC: "users@dpdk.org" Subject: RE: DPDK Pdump tool is not able to attach to DPDK test pmd primary application Thread-Topic: DPDK Pdump tool is not able to attach to DPDK test pmd primary application Thread-Index: Adpfkp7TBun73ni5To21ysF3VYaTmgCMBpkAAP6zAsA= Date: Thu, 22 Feb 2024 19:27:01 +0000 Message-ID: References: <20240217085952.7f8361eb@hermes.local> In-Reply-To: <20240217085952.7f8361eb@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR02MB8721:EE_|CYYPR02MB9711:EE_ x-ms-office365-filtering-correlation-id: a1eb9ab8-128d-4421-37b9-08dc33dc3e71 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3yb8mlqEKRZF2e7T+CckNOHyLbIYf25XS1D24izDXiksA0mBmnuy5hLONW/DVRxh3ihG4hkezccvYMQ8d0yJEqUHdg6xkZU3fMvd1tirzM28pNvndBMgChOw7t8JlB7CFm1+rRrRweySnD7cESeLnI1tVaPHGoK08TrUh/JTwfxLj6MDzAWd1N/odg9yenf3Fd3GVW/ORPOhQQvzE9XkXSH/AQCVxZPN4z1QCrbWriUxoI5H9KK5gjggDy7d/YKVAmH/4ihTqsQO3rRG/0EMT3fuRMP6gSwmCMFMBiRPyLMOisj7/8b+u7Lt/KrI8BMjo4PBq3euVNFxxhVU70IHRxwpyVJwT3cm+661YJKCEoqTy48b4NDfem+kpB7oSkN382+Mz5SOND87E0Nsan2T/Vvkl3V5dH0d1IMSI2G5J48+MDdRGfJNFu8tBjSIQK3pJRWov5FYjl9FqD9Jz8ybw1ZlFI9DRAtQZ7eWxRPm4liAwPwfXotnW5LvpwF7g4DM+IFU8s77ST4YvYjMVWdzq88/OJ9l3f+8qGSvpiAziTjwq2mdcNf0DpwWUP+GRUDNCC7Fq1tc1RGxl18+jHhOwW387Vd8YNd4Y6qWILm6n1UeA40qvWSyL6az4HZMVfb6 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR02MB8721.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(230273577357003)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4t0aVfZhNgEFmUo3CIi4LrjPfWW7rSar/J5+j2RgaYeyhkmmeQdSkcJ+Xhs4?= =?us-ascii?Q?UySq1/PmcBv3e8F3AfbY8KH//xsvYHbTpXBGCPzwLWNplypx1z0qDW4rc1la?= =?us-ascii?Q?96iouFKSjUZD3m+da1+eomR8XT7L9DdVm6DkGJvcG5WxWLmcMlqdx8/mWsOG?= =?us-ascii?Q?vkmKLo0rxmggK763ljidtWnTLwDPXCpIJ++CaO6aIzH15sEVYb0kwefCt8nC?= =?us-ascii?Q?DfZXK3ZXGLqBvaqNVfy0/XdkPYHw/7cL0UNm2dpTo60OHpx+XJkk/sXWqBsz?= =?us-ascii?Q?1uxlPMU81GSD1nvU84PuAuZcNe5ApOzR1HCPvaMfSvexNum5Gkd2NbwMIMU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G4GduFrjLpdVlV/JjlOd5jaqozTAal9pTlhq2G4?= =?us-ascii?Q?6xRGRaPMPAKbk5mQ6sdIGMNKbFqdYT6Nfr0SRIwWyxGcxB55UIAQyVcp9zaO?= =?us-ascii?Q?EZP8rQGigmVgR3W/Joovycokp/UHVDPNQcQisle72UjiLtq2KDu7AgElOHNW?= =?us-ascii?Q?6d9R70xCWDCj/UK+tf/zfkFFhPdupOrS8bdudW4soleK6Ss4Og2Ps3HvigIM?= =?us-ascii?Q?xbqaUrjc1T3WLUwB+NQoGcp8ZxICB+oylToU1yKFVfyw1bequnz6+2NqLvjz?= =?us-ascii?Q?+2rwmzvcZd7R9J0TqFy75/Zs3Td4nx99TnK3q5rRdQe+wi8DlLEebHzAF6Kl?= =?us-ascii?Q?UD2D2frHyueho5vpdtm7ZiLLpJXdIV0PEFN+ElqX?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: odZaLfV8wawMAjAR8IyG7R61oM2U1NILk+LcOmucSFBIDVF2RiYMZNQLJvHFZih6yn1gyiXSi/D8eYZ6i8xq69+Ob4IraK4ZjAvadjyKRih7ephZ3Sraw0oqKjLHxiS3Di7bQ5whTwJi8wJh0sCosPVBMVnnFFeOdrzXrDNRAMYwSGCZlnO+4pWcgqon5AJgJYDAKnYqdSnNpcLxIaA6phkLPfvc/vQhJHINyJPXEr+j8VbBqICaYwF0ksBfUvAR8uldwJk8srgtC/smBoWqbQdD3RuXvGqG/ztii674zZWsGFR33xwfN4WfKnrqapM/WUOOK0kzELb3lczShDvpBG4tchFyB4drjFdXef9SKpjDwiXJ/r95KRyP8x2DN5rYI6TDmu7DVqSEJ8AXa52Kz9gPIFB1jYm8Twer86AUKFf6Fkm0oBOoVtO5ty/VxFNXWHvcnAjTuFKqkLfcxOmei+ZTJKlHbwj9XDmEr7OwBu/QnfQ2F0fFsiJRx9tB/7BZapDK47+7qluzauCDyCKukfcXoJBrs4zhgmFaWeGoFGoHXMCkouWuofKQwvDlblz3UAnLCWfWADIP6RY33i0jc2R4Y/TEE+YY5CwYQBOLd7HzvXbUMGzyyL+p8+qMeIMC X-OriginatorOrg: qti.qualcomm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR02MB8721.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1eb9ab8-128d-4421-37b9-08dc33dc3e71 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2024 19:27:01.3113 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 98e9ba89-e1a1-4e38-9007-8bdabc25de1d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4KZu3BdWd5+l8v3eCWaTyunF3ScPdVCrkAT7k8RE+5ihtUsxhnuhudPlx2L9DQ/pHNs2f/zbnEDtiC57phb2Jg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR02MB9711 X-Proofpoint-ORIG-GUID: LqDS-9tw2pcrDuOmZgau5h7dMSZE8sgH X-Proofpoint-GUID: LqDS-9tw2pcrDuOmZgau5h7dMSZE8sgH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 mlxscore=0 suspectscore=0 adultscore=0 impostorscore=0 malwarescore=0 phishscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402220153 X-Mailman-Approved-At: Thu, 29 Feb 2024 09:50:52 +0100 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 I don't think the pdump application is doing the transmit/receive. Am I mis= sing something in the command line arguments I passed below that would conf= igure it to transmit/receive? Passing in the rx-dev and tx-dev as pcap should not cause that right? The d= ocumentation mentions those as mandatory arguments. I tried specifying an i= nterface as well and saw the same issue. Thanks Sameer Vaze -----Original Message----- From: Stephen Hemminger =20 Sent: Saturday, February 17, 2024 10:00 AM To: Sameer Vaze Cc: users@dpdk.org Subject: Re: DPDK Pdump tool is not able to attach to DPDK test pmd primary= application WARNING: This email originated from outside of Qualcomm. Please be wary of = any links or attachments, and do not enable macros. On Wed, 14 Feb 2024 22:44:46 +0000 Sameer Vaze wrote: > Hey Folks, > > I see the following message when I attempt to attach pdump to the testpmd= sample application: > > Pdump output: > EAL: Failed to hotplug add device > EAL: Error - exiting with code: 1 > Cause: vdev creation failed:create_mp_ring_vdev:695 > > Testpmd output: > Reached maximum number of Ethernet ports > EAL: Driver cannot attach the device (net_pcap_rx_0) > EAL: Failed to hotplug add device on primary > > The primary and secondary applications were run using the following comma= nds: > > Primary: sudo ./dpdk-testpmd --proc-type=3Dprimary --file-prefix=3Dtest -= d=20 > /path/to/pmd > Secondary: sudo ./dpdk-pdump --proc-type=3Dsecondary --file-prefix=3Dtest= -d /path/to/pmd -- --pdump 'port=3D0,queue=3D1,rx-dev=3D./rx.pcap,tx-dev= =3D./tx.pcap' > > DPDK version: 22.11.1 > > Is this a known issue? Is there any known fix for this? > > Thanks > Sameer Vaze pdump and dumpcap can't work where the actual data transmit/receive is done= in secondary process. The problem is in the design using callbacks and the= way the pdump/dumpcap is initialized. The pdump/dumpcap works as an additional secondary process. At startup pdump/dumpcap communicates with primary process to enable callba= cks on rx/tx but these work only in the primary process. In secondary proce= ss, there are no rx/tx callbacks.