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 7C2F0A0093 for ; Thu, 17 Mar 2022 17:44:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 051DE407FF; Thu, 17 Mar 2022 17:44:18 +0100 (CET) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id 2141F4067B for ; Thu, 17 Mar 2022 17:44:17 +0100 (CET) Received: by mail-lf1-f45.google.com with SMTP id g17so10009141lfh.2 for ; Thu, 17 Mar 2022 09:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NDbf+zzCsaLCXPn0ip34eynWWx/rh7LHfqxMZ7y4cNI=; b=NrH/x8tstxRrusTxZBVhqZucnEN19nz1F5OwjY0HgWD41Na8oxmWg6L6aOsI9dHBsl CkHBzvG5XRDgvl+PGCytZ62PQH4CNdpzM7a20G2eVrmK7MyWShxe5XZTljAHO9fqbP5i lN8l1aPw26gDM9txLpXVF3JYKw6TsBiwa2zV6pNPTqtXACjnVOMLC/qRKzrkNqJMBZ06 n1wGBrjJJSAFBP4vcRwGXkprgT+bqqv2opDpg/36HUGc7t0zU+2dwscV7WSSrbx7+rBW alKnZZrRu/oUDBt8611eeTc8P6+WerEIJCKe/YWNuNqY6+aLvoCGF9f4n2bZqUtqTFm7 IN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NDbf+zzCsaLCXPn0ip34eynWWx/rh7LHfqxMZ7y4cNI=; b=izBMVK/OW9PCd6nEm0MLAtFiD8oaZkFVGnvCfoUwAm/VVQRvttmco6J/L5C2Z9OeWR kfNyEf8izp0EudoU/L/NG31JJ2YlHEaZtE6SUJmpB3AAd5M2fdTC77cy9EmjaF5Q6SDm uojEiIJtdcIVPjHLK4PKxgia+1TRvlowvLNkJlxPwryXVpgfYFWU1bXlSRsqrUFSDV1x /0ghUAC2tFglQZlhU3xMzpwAZFkr2yVg6Qh0pDpu9iH92zZjLc1vAL7I4CkDst7z6Q27 NYxlAMArcaMxga9NnmGXxD/LalMFnaj57AdoN+1m5GZ1D5UesJyK+crO5w9nz1W5MJ+U 2DaA== X-Gm-Message-State: AOAM532uvwulACXbasAAUMX5ngX3qqNVQdhx3HuVpDXXj5m/PDJBKQAf /HfacMCj0R0upISYcS3PTnw= X-Google-Smtp-Source: ABdhPJwh0FbsgvT1XUgM0DiApA21c4ALrhbBYPdMEV2vA81jfqXZ3EF/0sjHwLrYkuES9+i9XL0R1A== X-Received: by 2002:ac2:5491:0:b0:448:7bcb:4278 with SMTP id t17-20020ac25491000000b004487bcb4278mr3269387lfk.450.1647535456335; Thu, 17 Mar 2022 09:44:16 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id e7-20020a05651c038700b00247dbb3e476sm481500ljp.40.2022.03.17.09.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 09:44:15 -0700 (PDT) Date: Thu, 17 Mar 2022 19:44:14 +0300 From: Dmitry Kozlyuk To: Antonio Di Bacco Cc: timwood@gwu.edu, users@dpdk.org Subject: Re: Connecting two DPDK applications through fake virtual functions Message-ID: <20220317194414.09e9530d@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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 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 > > 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. > >> > >>