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 36669A0093 for ; Thu, 17 Mar 2022 21:54:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4A42407FF; Thu, 17 Mar 2022 21:54:03 +0100 (CET) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) by mails.dpdk.org (Postfix) with ESMTP id B8B8340040 for ; Thu, 17 Mar 2022 21:54:01 +0100 (CET) Received: by mail-ua1-f45.google.com with SMTP id a28so2533907uaf.7 for ; Thu, 17 Mar 2022 13:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YyfcaDn3GwMtlvEM8A5cpRda8Tx3znAeGG2HkSMIQ2I=; b=G5MKG2gQc1BQDveAtfWMQBN9b7QJAWTCkkmDCgieTnh3P8jf+MxGes9+5iq86t/ruV v1BL/N7oEeOsjVHFljR2Jn/bZuOKgSAVum3X3myash8vdMQmGv7GJWWM+Y5Lp5TUFjLl UJNC/TL27fwGAYS5QsQW3eZI1ZYWTLBa9M11UfEgdbNGSgZmF059qKztutLzAz388fwx kxSuPF6DLfQqw6GvsCG7hx5IWqTyOPJzyFvPyCX6BZnPObyjaWpDBnaYs2KkFDC30xSE wqFjO4J/Hddq7f42EJACw5DK1R61+Vs9x2KDjfwM9UHqyXNGW9qyXUHWx7DnzPQfbAun kxuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YyfcaDn3GwMtlvEM8A5cpRda8Tx3znAeGG2HkSMIQ2I=; b=IYHoHIW49SMMRxcebE0SjtlrOJ72PtehN29LOE/zJN4U3Rsiss37Ygk/YyudAnIsyK gaj6BAVe3fB4pExOfLYvtMzs/6Vz8bEe6pHp/XmqR0Pk/XvFXFkiH5asNPwVFD/0zscG hgzstSiu7VrgwUCT0bjKdodC13jb0mcaY95d8HVgQDObu+DcOymlKJZ68/Tug9d/oAZE /5/ACDe/4qzuSA0/KH1rH3cbTLl8Lr+jn/no/WI7lVGALOdblSXYzkq8/TACN7unEB8D Ek9Rt8GuFMURmOGmaAwt3kB0BvUlayqf48eO+RxLFhkpn5rAvkSYyWApv9FmknH2843H zyXg== X-Gm-Message-State: AOAM531XnRXbWskBDfsykn3QYjMsPhX/IcUdDr7AhuRpIZLQcprBoyx7 xLA54L8niT9TktuqQNHf/2dLoWm5kmT0GCTrYeg= X-Google-Smtp-Source: ABdhPJx8qVwKcDdlS1jcTvYG4YcIo35krGilNQAoP7lUy8INTRf3Mmjw8rygrewY5IqkKeA1dBsNrqn07LvD/JPsUh8= X-Received: by 2002:a9f:326a:0:b0:308:f962:a19c with SMTP id y39-20020a9f326a000000b00308f962a19cmr2349502uad.53.1647550441053; Thu, 17 Mar 2022 13:54:01 -0700 (PDT) MIME-Version: 1.0 References: <20220317194414.09e9530d@sovereign> In-Reply-To: <20220317194414.09e9530d@sovereign> From: Antonio Di Bacco Date: Thu, 17 Mar 2022 21:53:50 +0100 Message-ID: Subject: Re: Connecting two DPDK applications through fake virtual functions To: Dmitry Kozlyuk Cc: timwood@gwu.edu, users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000c9e40b05da703a3e" 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 --000000000000c9e40b05da703a3e Content-Type: text/plain; charset="UTF-8" Really? I know that the application is using a PMD driver for Intel card, will this driver work with memif too? Il giorno gio 17 mar 2022 alle ore 17:44 Dmitry Kozlyuk < dmitry.kozliuk@gmail.com> ha scritto: > 2022-03-17 16:55 (UTC+0100), Antonio Di Bacco: > > Unfortunately I cannot change the applications but I only can create some > > fake VFs and connect them with software. > > Could OVS come to the rescue? > > You don't need to modify app code to communicate via shared memory: > https://doc.dpdk.org/guides/nics/memif.html > > > > > Il giorno gio 17 mar 2022 alle ore 14:27 Timothy Wood > ha > > scritto: > > > > > One option is to modify the applications to use DPDK's multi-process > > > support: > https://doc.dpdk.org/guides/prog_guide/multi_proc_support.html > > > Essentially you would have one app read from the real port and then > write > > > data to a software queue in shared memory. Instead of having the > second app > > > read from a port it would read from the queue. > > > > > > If you want to build more elaborate combinations of functions, check > out > > > our OpenNetVM research project which focused on high performance NF > > > chaining: http://sdnfv.github.io/onvm/ > > > > > > --- > > > Timothy Wood, Ph. D. > > > he/him/his > > > Associate Professor > > > Department of Computer Science > > > The George Washington University > > > http://www.seas.gwu.edu/~timwood > > > > > > > > > On Thu, Mar 17, 2022 at 5:29 AM Antonio Di Bacco < > a.dibacco.ks@gmail.com> > > > wrote: > > > > > >> I have two DPDK applications that are using virtual functions built on > > >> top of two physical functions that correspond to the two ports of a > 25 Gbps > > >> ethernet card. The two physical ports are connected one to the other > with > > >> an optic fiber. > > >> Now, I would like to realize the same setup but without using a > physical > > >> 25 Gbps card, I wonder if this is possible. > > >> > > >> > > --000000000000c9e40b05da703a3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Really? I know that the application is using a PMD driver = for Intel card, will this driver work with memif too?

= =C2=A0

Il giorno gio 17 mar 2022 alle ore 17:44 Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> h= a scritto:
2022-= 03-17 16:55 (UTC+0100), Antonio Di Bacco:
> Unfortunately I cannot change the applications but I only can create s= ome
> fake VFs and connect them with software.
> Could OVS come to the rescue?

You don't need to modify app code to communicate via shared memory:
https://doc.dpdk.org/guides/nics/memif.html

>
> Il giorno gio 17 mar 2022 alle ore 14:27 Timothy Wood <timwood@gwu.edu> ha
> scritto:
>
> > One option is to modify the applications to use DPDK's multi-= process
> > support: https://doc.dpdk.or= g/guides/prog_guide/multi_proc_support.html
> > Essentially you would have one app read from the real port and th= en write
> > data to a software queue in shared memory. Instead of having the = second app
> > read from a port it would read from the queue.
> >
> > If you want to build more elaborate combinations of functions, ch= eck out
> > our OpenNetVM research project which focused on high performance = NF
> > chaining: http://sdnfv.github.io/onvm/
> >
> > ---
> > Timothy Wood, Ph. D.
> > he/him/his
> > Associate Professor
> > Department of Computer Science
> > The George Washington University
> > http://www.seas.gwu.edu/~timwood
> >
> >
> > On Thu, Mar 17, 2022 at 5:29 AM Antonio Di Bacco <a.dibacco.ks@gmail.com&= gt;
> > wrote:
> >=C2=A0
> >> I have two DPDK applications that are using virtual functions= built on
> >> top of two physical functions that correspond to the two port= s of a 25 Gbps
> >> ethernet card. The two physical ports are connected one to th= e other with
> >> an optic fiber.
> >> Now, I would like to realize the same setup but without using= a physical
> >> 25 Gbps card, I wonder if this is possible.
> >>
> >>=C2=A0

--000000000000c9e40b05da703a3e--