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 D1B8041B28 for ; Mon, 28 Aug 2023 10:30:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50E944026D; Mon, 28 Aug 2023 10:30:51 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 2208D4021E for ; Mon, 28 Aug 2023 10:30:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693211449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GippTBn/EqCqBVhJGQbSoG+fmQt/carJs/OX8DA0BXs=; b=dWfFVzf3vMXEPRAhFOh85HgZJNmmZOwAI6bIdx0iPiQhT7zHDcKINVkSIkylWxLm+oh8v0 rS7t2ofnLPyFm/NpCZxUREEfYTFIW3gk5AfAfRbr//Ol9QFaIOB0iybqzBV+XDV9APfZTe svq6k0EyqbyCngxI8yhEk3889N+Iz48= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-693-LPTqqXGgOyGOIyDSBpBhJg-1; Mon, 28 Aug 2023 04:30:48 -0400 X-MC-Unique: LPTqqXGgOyGOIyDSBpBhJg-1 Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-500b99571daso816475e87.3 for ; Mon, 28 Aug 2023 01:30:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693211446; x=1693816246; h=content-transfer-encoding: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=GippTBn/EqCqBVhJGQbSoG+fmQt/carJs/OX8DA0BXs=; b=RL1oFNtPow2fpf73ZovfOqKwy/iD6dHWqHQKuPUUWtu6CawL1Vk8arSK3TkJSpD4eR jBDLks7DSwDX730IMQXcTmzljs3Bm/A8uNoMZfcIlzhixCTBial+5Wimz1sC/9gNXLc6 YVbT0qJds/VhwE3nYCkvuqbmjkJQlmT1ROu4FZWBhdIAJ2i4vB2e6TiH8KlXRSEr0ihV reBygk3Pswz6IZvEa1AGHFlqEPhl3bVZodCEsP6UBP6xNFQ9FbnXV5kIZ1ik2j/i2SCD jvFUOUDicjQuTTh2Vfy9975AHAG5pJoxhTPD7Y4lHfBXdutbmKh56ZpeqCb33Tx/Y11E wtQg== X-Gm-Message-State: AOJu0Ywv4Kh66ywKALfhUrgSI1j6OJzIggx5CsRRv4GpHio3B4zualW7 Kfs3hNh1ZWREfgGuMfx7Fk07sE2zSdi5ldSqI8jcB7xI6ZZBYyahi+h8kA70NFDpUWlLcZ3zaDN mQwQnw104xOwwWBfTFXWJKw== X-Received: by 2002:a05:6512:ea4:b0:4f8:7897:55e6 with SMTP id bi36-20020a0565120ea400b004f8789755e6mr22029933lfb.45.1693211446638; Mon, 28 Aug 2023 01:30:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8C1pk56A+705CzLmlb2F2bPQymKxNNqJ3VuWLo/CeUZ9AkpV3YdHJtq5WrQHFx+ucWcmaKhgA6ie16rD/9UY= X-Received: by 2002:a05:6512:ea4:b0:4f8:7897:55e6 with SMTP id bi36-20020a0565120ea400b004f8789755e6mr22029924lfb.45.1693211446336; Mon, 28 Aug 2023 01:30:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Marchand Date: Mon, 28 Aug 2023 10:30:35 +0200 Message-ID: Subject: Re: Virtio_user for kernel interface. To: Carlos de Souza Moraes Neto Cc: "users@dpdk.org" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, Aug 28, 2023 at 10:07=E2=80=AFAM Carlos de Souza Moraes Neto wrote: > I'm attempting to utilize virtio_user for packet transmission and recepti= on via the kernel's network stack. I transmitted packets from a NIC to virt= io_user0 and captured them on the tap0 interface. However, when trying to s= end a packet from tap0 (for instance, a basic ping) and route it to DPDK, t= he function rte_eth_rx_burst returns zero packets. My initialization is set= as follows: > -l 0-4 --vdev=3Dvirtio_user0,path=3D/dev/vhost-net,queues=3D3,que= ue_size=3D1024. Just an idea. If you ask for 3 queue pairs, your application must poll packets from all 3 rxqs, as the kernel may choose to send packets through any of those queues. Are you perhaps only polling one rxq? --=20 David Marchand