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 8266645AD6 for ; Mon, 7 Oct 2024 17:34:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A1794026C; Mon, 7 Oct 2024 17:34:28 +0200 (CEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 8D0EF4021E for ; Mon, 7 Oct 2024 17:34:26 +0200 (CEST) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-71e038f3835so918810b3a.0 for ; Mon, 07 Oct 2024 08:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728315265; x=1728920065; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=qz83hap5fhW7tEd5tTNZVi3gMMgfs1V96iStC2ACG4A=; b=NBfRGeSs8g6HLiaXbWpsooNKnZy8VtIx54KiU1PkDWIpe9RQfPinkXR9s4UyDyTO/a hpeZAEymrSuitfDBahD/IXCLj4f8ki2gipOy2V6ACvbs0gp5LvHB/wPRdFkKEAgYhY0a XUHYSlsY0ZCZvaCT/tWymgteLIkq2bVkEHtb0UGoGFrQbVImonfLutXPXJaVPjf6vrYM rt7AohEqCw6BjIJUogjavx23qwgf9Q14Tf819brorUJwTeWOE+dhOHJKlQCmz+1+p4lP uvdLb5mUKxtcklswTgZZvTHoRHbr+nyaGsegH/Xi6gD1f0CniurHfndeyDxwxbqj/8/F olgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728315265; x=1728920065; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qz83hap5fhW7tEd5tTNZVi3gMMgfs1V96iStC2ACG4A=; b=WMLP8N2tubfOpfR+BPoviOjfrXilwqdEq4r+ORGszHIRuxDO0oAdejAN6YjoBFViZ1 E7fJqeBMblYcj54HSF28M22MCJ+RATle3gn547OqHX302R7YiIQm7r7txPQ/EcLIj8wp W7TQaUIFzEczr07jt2aDbp5bBDtwyswW9JdqbUaBKxj7IyNR73rFtudMlllJx4JeLbaf 5maR0YDBqXmJeF/8ORhB9T8jcKoQa9j+3Eak4bSUcYdj266b4Ud5h2jszzSzUbnIaUJd hUbpjMAn4xep3AduFwM0oF7FuK+p2sGhnd7bHmQIrZ/zS2cLJgq2aG5QP85R7P7YMwEq EijA== X-Forwarded-Encrypted: i=1; AJvYcCX+8szxDLniqcbzGyojTR3yjuATfQwHBEnYJFeUH8bPhVAxdtUmjO6J9GSk7FFkyHmuUE8SPQ==@dpdk.org X-Gm-Message-State: AOJu0YyRL6YV/953rpgtdE9bRqButdzSmICyzCrQ+tOzsw1ttsdov205 OpfUdvqrV02Q5dkUqJb9KsXyZsYT/8jQy8plOj3IrfOeb5KC3C+aUNQv5uIIZEI= X-Google-Smtp-Source: AGHT+IEViYhxFWtq46TskauvxncDlE4tkvdVY3+kPLQyaYfMHQhF/fxOc9XoSAx8Yw0UWdu97Gc0Zw== X-Received: by 2002:a05:6a20:e18a:b0:1d6:d0d3:c50c with SMTP id adf61e73a8af0-1d6dfac81c7mr18465742637.35.1728315265430; Mon, 07 Oct 2024 08:34:25 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20b13beecsm5539752a91.54.2024.10.07.08.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 08:34:24 -0700 (PDT) Date: Mon, 7 Oct 2024 08:34:22 -0700 From: Stephen Hemminger To: Bing Zhao Cc: Lokesh Chakka , users Subject: Re: unable to capture packets Message-ID: <20241007083422.29eef2d7@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Mon, 7 Oct 2024 15:21:58 +0000 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. Also what is the startup log from the EAL and PMD. You can also enable debug logging