From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <users-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E53A42508 for <public@inbox.dpdk.org>; Wed, 6 Sep 2023 08:07:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2A08402AF; Wed, 6 Sep 2023 08:07:33 +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 86E3C4029D for <users@dpdk.org>; Wed, 6 Sep 2023 08:07:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693980452; 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=lIYlQaMwRbKWEvxfPTCjc5sFp6Sc0ytHGjrCS8H+inM=; b=X/HbPli0Ym7QzWj/k8gal4VMVtiugaHxPGIcrKi88JY5v1Y7hyRIMxQPIqF+UdfzPjUsi3 FgclnQdvsqLxIGh7YIl3LqUpBZUE8c6UE5cXUDEnSv0L91GwcR/+0gtfmaooNk5W6/Jkmm Y2x+zxjh3Jr1U71cCHUsTNbBaSZ0IL8= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-77-6rltF5mtP_2FJArT3p5BvQ-1; Wed, 06 Sep 2023 02:07:30 -0400 X-MC-Unique: 6rltF5mtP_2FJArT3p5BvQ-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-500983fde5fso3505142e87.1 for <users@dpdk.org>; Tue, 05 Sep 2023 23:07:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693980449; x=1694585249; 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=lIYlQaMwRbKWEvxfPTCjc5sFp6Sc0ytHGjrCS8H+inM=; b=U7ptJ/ORetzE2q3GehzOQKIkX+bdobf1fcHJKfDJTa6/qawKd1p/8t0ng0Uvqc5kxu 5dYciwOTx75z7BOp7JVZhOGkA63++k5NYr9MwpVKUKvK4o1BYKozmcy22BGC/d+qOfG3 idUTtHmiir1t6D2Cek8XGyaEHEP2ZUk8y9/0uvklViKBZrPnLRh8o/3CvpWGWwuNEute JNn+yfqcF5tuFGKo/MFw0njGPbodYLEldejMBNorDXiU84yGPkQRm4XRsh8Y+wo0xw91 vHCvIYCcqpMntrBrnVA0+0YQPbA+RY8GKU6bVa5xu6ZMPEex+ofib3aB4d+ro+gyrige xn1w== X-Gm-Message-State: AOJu0YzzRRqWryjblIbJRe27fzQbB4Y9qGBv2Dnom2LLRRi4G0kpy2E+ +e6I6Jyx8geRfmbLdze2+ZPZWju+00pa1klYOX5V+aiHeA6Y7TCW8AU6MB8PAbq9b17fPHG6Bv+ lyDxPm3rg1Yy3GjLWoxnjCQ== X-Received: by 2002:a19:f012:0:b0:500:99a9:bc40 with SMTP id p18-20020a19f012000000b0050099a9bc40mr1410470lfc.69.1693980449527; Tue, 05 Sep 2023 23:07:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdDpIHMsHk8zjUtL+WuPn7pDu6x7UXjGU8I3luc0TvXPGyKIoLU6gojkI9hD1GEWlxjbbKlQCdE4rZY5U3LgQ= X-Received: by 2002:a19:f012:0:b0:500:99a9:bc40 with SMTP id p18-20020a19f012000000b0050099a9bc40mr1410459lfc.69.1693980449230; Tue, 05 Sep 2023 23:07:29 -0700 (PDT) MIME-Version: 1.0 References: <TYAPR01MB63789A595A31264F5D55C5DBBCEFA@TYAPR01MB6378.jpnprd01.prod.outlook.com> In-Reply-To: <TYAPR01MB63789A595A31264F5D55C5DBBCEFA@TYAPR01MB6378.jpnprd01.prod.outlook.com> From: David Marchand <david.marchand@redhat.com> Date: Wed, 6 Sep 2023 08:07:17 +0200 Message-ID: <CAJFAV8wMPNDiLCJeNe6tCFCnWNyrm8ge=tO1=2QC0WYa7SFqyA@mail.gmail.com> Subject: Re: Implementing a simple TAP PMD to dpdk-vhost structure To: =?UTF-8?B?Tmljb2xzb24gS2VuICjjg4vjgrPjg6vjgr3jg7Mg44Kx44OzKQ==?= <ken.nicolson@jp.panasonic.com> Cc: "users@dpdk.org" <users@dpdk.org>, Maxime Coquelin <maxime.coquelin@redhat.com>, "Xia, Chenbo" <chenbo.xia@intel.com> 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 <users.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/users>, <mailto:users-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/users/> List-Post: <mailto:users@dpdk.org> List-Help: <mailto:users-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/users>, <mailto:users-request@dpdk.org?subject=subscribe> Errors-To: users-bounces@dpdk.org Hello Ken, On Wed, Sep 6, 2023 at 3:56=E2=80=AFAM Nicolson Ken (=E3=83=8B=E3=82=B3=E3= =83=AB=E3=82=BD=E3=83=B3 =E3=82=B1=E3=83=B3) <ken.nicolson@jp.panasonic.com> wrote: > > Hi all, > > Using dpdk 22.11.2 on Ubuntu 22.04 > > I have a really simple use case, but I cannot find how to implement it. I= 've set up QEMU with all the required virtio support, so I just need to con= figure my Host OS-side. I want to send data from a PCAP file via tcpreplay = from the Host to the Guest, so I use this command line: > > $ sudo /home/integ/dpdk-stable-22.11.2/build/examples/dpdk-vhost -l 0-3 -= n 4 --socket-mem 1024 --vdev 'net_tap0' -- --socket-file /tmp/sock0 --clien= t -p 1 > > However, this fails with: > > EAL: Detected CPU lcores: 20 > EAL: Detected NUMA nodes: 1 > EAL: Detected static linkage of DPDK > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'PA' > VHOST_PORT: Failed to get VMDq info. > EAL: Error - exiting with code: 1 > Cause: Cannot initialize network ports > > The offending code is from examples/vhost/main.c: > > if (dev_info.max_vmdq_pools =3D=3D 0) { > RTE_LOG(ERR, VHOST_PORT, "Failed to get VMDq info.\n"); > return -1; > } > > This is because the TAP PMD doesn't support VMDq pools. > > Is there an easy way to get this to work? This sounds strange to require VMDq support... Copying Maxime and Chenbo who probably know better about this example code. Alternatively, did you consider using testpmd with the vhost pmd instead ? --=20 David Marchand