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 6A37445AD6 for ; Mon, 7 Oct 2024 17:36:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E337B4026C; Mon, 7 Oct 2024 17:36:43 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 48BE74021E for ; Mon, 7 Oct 2024 17:36:42 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2e077a4b8c0so3238339a91.1 for ; Mon, 07 Oct 2024 08:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728315401; x=1728920201; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=06ZE1VYBAwsoilFtltLVZ/JXA4vqxiETihnREDyZaZk=; b=A6t7s+hK6gtFsVjd1rsQzZOHuu2yCf2QjczsCx8OpPNod2X/Sw7Df9dOBVZdZAvOty NEj1jC4tXNYHQZnXak2L6me45e47I9ccGz11HLvDX7tDUrSopjQZEjluxiXlkfgu5Y9R m0TZqGd8ZjWQQqSir1tiwgmw5Dyeq4v+Hslo5vOTb09wX8vwXpv+W35urUJjTMLXJo4E BLGt+B1vK5fxtIu9iOTH6PsGcqUfI4VVALLr08FDUdmAE73V3Nz52BWkTJVH4iSZGzmo zVmZBT9LD3gzkL8Q92/VI80Nx+wfzaLGMlpmJ4wOARodPL0blyvbCebWR8YZe4m3TnaN ArRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728315401; x=1728920201; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=06ZE1VYBAwsoilFtltLVZ/JXA4vqxiETihnREDyZaZk=; b=q+xNXc473+eCRleQoHVYVIK4fQl0t8Kin/bt/LIWv0eYzdZbUFj+vjJ7KTbhSKzngg G30QVY9pOuNYmSw1An7NFS9hgy+fkla3VZz5NkaAcBHCNOrcgjLGXWmp+mgXLi5sA0sZ jrVXnST9SQc07SyElrduHC6J1eGSQWExGJRNYj31cS35SggjnAWs2zB9oomapAmNjB58 7MknbL/MArG6aIr10SqIsOlVs9VgxoGRVggakm5dCUe3oCJELoP5VYx6nfQh451/Ms+d rg01OGuDD5KMcwtyKZdJnBbB+67Gb/Ev2niinZI4PTG053it5oMYmiqHnW6Zyp+ylpIu 6UZA== X-Gm-Message-State: AOJu0YwZvr/gyOSDvM3nUspXS4WN2SSDDNfzEThkD9N3jFR6LFQJTehW LrZ1OcPrC0vh4xfRNYnitnscmwObYV2soYDpM/z6t0vDQBGNlpx5PCtQPHLGCS69ejBow3CYUKD ajSTJaiO9vSXdsxEjfIOSlMJxQCU= X-Google-Smtp-Source: AGHT+IFvzp6iKJQOxj/dWYGxqEvYCOwoOXoycKpPdVLdkdhS5YttZgIZwZAzjZ5zS5gTyP2cXJ6dZLE5es373PcrQ8U= X-Received: by 2002:a17:90a:bf06:b0:2e0:7e80:2011 with SMTP id 98e67ed59e1d1-2e27df433bfmr2002a91.16.1728315401187; Mon, 07 Oct 2024 08:36:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lokesh Chakka Date: Mon, 7 Oct 2024 21:06:29 +0530 Message-ID: Subject: Re: unable to capture packets To: Bing Zhao Cc: users Content-Type: multipart/alternative; boundary="0000000000008c3ee90623e4c99f" 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 --0000000000008c3ee90623e4c99f Content-Type: text/plain; charset="UTF-8" I've tried TX. It's working fine. I'm sure problem is only with my code. On Mon, 7 Oct, 2024, 20:52 Bing Zhao, wrote: > Which NIC are you using? > > Have you tried dpdk-testpmd or l2fwd on your setup to check if the packet > can be sent and received correctly? > > > > BR. Bing > > > > *From:* Lokesh Chakka > *Sent:* Monday, October 7, 2024 9:52 PM > *To:* users > *Subject:* unable to capture packets > > > > *External email: Use caution opening links or attachments* > > > > hello, > > > > I'm trying to capture packets using the following piece of code : > > > > ========================================================== > > struct rte_eth_rxconf rxq_conf = dev_info.default_rxconf; > rxq_conf.offloads = port_conf.rxmode.offloads; > rte_eth_rx_queue_setup( 0, 0, num_of_pkts_per_queue, (unsigned int)sock, > &rxq_conf, mem_pool ); > rte_eth_dev_start( 0 ); > while( 1 ) > { > num_of_pkts_rcvd = rte_eth_rx_burst( 0, 0, mbuf, num_of_pkts_per_queue ); > fprintf( stderr, "num_of_pkts_rcvd: %u\n", num_of_pkts_rcvd ); > } > > ========================================================== > > It's always printing num_of_pkts_rcvd as 0. > > > > Can someone help me understand what the issue is .... > > > Thanks & Regards > -- > Lokesh Chakka. > --0000000000008c3ee90623e4c99f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've tried TX. It's working fine.
I'm sure problem is only with my code.

On Mon, 7 Oct, 2024, 20:5= 2 Bing Zhao, <bingz@nvidia.com&g= t; wrote:

Which NIC are you u= sing?

Have you tried dpdk= -testpmd or l2fwd on your setup to check if the packet can be sent and rece= ived correctly?

=C2=A0

BR. Bing<= /u>

=C2=A0

From: Lokesh Chakka <l= venkatakumarchakka@gmail.com>
Sent: Monday, October 7, 2024 9:52 PM
To: users <users@dpdk.org>
Subject: unable to capture packets

=C2=A0

External email: Use caution opening l= inks or attachments

=C2=A0

hello,

=C2=A0

I'm trying to capture packets using the followin= g piece of code :

=C2=A0

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

struct rte_eth_rxconf rxq_conf =3D dev_info.default_= rxconf;
rxq_conf.offloads =3D port_conf.rxmode.offloads;
rte_eth_rx_queue_setup( 0, 0, num_of_pkts_per_queue, (unsigned int)sock, &a= mp;rxq_conf, mem_pool );
rte_eth_dev_start( 0 );
while( 1 )
{
num_of_pkts_rcvd =3D rte_eth_rx_burst( 0, 0, mbuf, num_of_pkts_per_queue );=
fprintf( stderr, "num_of_pkts_rcvd: %u\n", num_of_pkts_rcvd ); }

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

It's always printing num_of_pkts_rcvd as 0.

=C2=A0

Can someone help me understand what the issue is ...= .


Thanks & Regards
--
Lokesh Chakka.

--0000000000008c3ee90623e4c99f--