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 501C445AD3 for ; Mon, 7 Oct 2024 15:52:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB5BC4026C; Mon, 7 Oct 2024 15:52:43 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 8CB524003C for ; Mon, 7 Oct 2024 15:52:42 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-20b7a4336easo32259785ad.3 for ; Mon, 07 Oct 2024 06:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728309161; x=1728913961; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=lNa7NUVMuxoIpCTEX3komsNTs9y4dflBngDo1zdvdbY=; b=UtBqn+nTgK/I+Z1baDs1C1fcmsx+ZN1O52Gj4vm8pjqwFvq4UZktzcRP2wVxxH0yk0 /H5M9GGgelFTutrMGLxM864nrXNfXvipTHFR2JLOVz/3EG/f2JfSWRBE4fES461FPp/G 5Zqqr/dK7nUe1624TAKX/zNC2+gRVkCn1AplhPvJKclJebf/JCNn2hjZjQ35NyIEbHei 6DpzS1/105w3HDYQRmdOlUr79MkxooJSK9hJzf/MK+bOF3+LhTjSEkBKf+FS2rICfLg4 dv5cev7S5Q/4yI6atqDL2lUPfwLdoei1cCjWXQG2vZFSW0qtvPmAgavI2UAyxR0g0jRo CY/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728309161; x=1728913961; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lNa7NUVMuxoIpCTEX3komsNTs9y4dflBngDo1zdvdbY=; b=S29Tg7pzly5gNz9ZPxBeNqxt7d2vQApQ4MXAVH39JPIi6oLIrQ8kggpPrzBg0YiNtj QgMh/kEeH1UrAkySnYLkZaKVX/Ea431NV8nmDiihWTR6QV5+OzSt8S8XSkn+q6tG9u1H VLkGd5S+XtXeIt1v+DezZC/jeMjYY42Wl02nvcKDFc0ajUuDSILQ1xLnLR7vrDR3mdxK 8hlMFw6NVxGhRsclNFVvDWPi/1+rqZpFikg0PEIt5cAq6rUJYNSc6OrwB+E//JH3Iwsl YCBSEwLbhZ72Nurxey4V1HXlm/PDnx1UDZMq5uXgRM6KvqDd6v0cv42HjxzW5P2FBA/O ti9w== X-Gm-Message-State: AOJu0YwlfNW7zl7HJc32Lt2kL92ORzdTCTnSkq2E9/WMvS4kantCSyGh LRzpdALPY7I7GZyfSQ84vhy6Bm932oryGg43fxGJm5/MuATqAQE5c251kRt0+fkJUXc/YFYmgCH G1bYkxLVP3X6tuqMPnwUloII+6wWqjI3c X-Google-Smtp-Source: AGHT+IHgJvL1nC/3gwTrqq58+wvkN2AV6Sx4nwZP5PbOPk50rbWzfZCRdsY+EgekaduTc/2Tkh6f1FZ2w0iHrtSqNTI= X-Received: by 2002:a17:90a:71c8:b0:2d8:ea11:1c68 with SMTP id 98e67ed59e1d1-2e1e635434cmr13555847a91.31.1728309161106; Mon, 07 Oct 2024 06:52:41 -0700 (PDT) MIME-Version: 1.0 From: Lokesh Chakka Date: Mon, 7 Oct 2024 19:22:28 +0530 Message-ID: Subject: unable to capture packets To: users Content-Type: multipart/alternative; boundary="0000000000009c26450623e355b4" 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 --0000000000009c26450623e355b4 Content-Type: text/plain; charset="UTF-8" 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. --0000000000009c26450623e355b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hello,

I'm trying to cap= ture packets using the following piece of code :

<= div>=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.offloa= ds;
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 =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
=
<= div dir=3D"ltr">
It's always printing num_of_pkts_rcvd as 0.

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

Thanks & Regards
--
Lokesh Chakk= a.
<= /div> --0000000000009c26450623e355b4--