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 34D0AA0A02 for ; Thu, 20 May 2021 22:34:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B614140143; Thu, 20 May 2021 22:34:48 +0200 (CEST) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by mails.dpdk.org (Postfix) with ESMTP id EB42E40041 for ; Thu, 20 May 2021 22:34:47 +0200 (CEST) Received: by mail-ej1-f53.google.com with SMTP id z12so25847339ejw.0 for ; Thu, 20 May 2021 13:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=uB34KUbYODGd6H0x91OAw/g8BpGv0WV+uoI5CDSaq94=; b=PcPuhQpuN1hbXN0su8ihU3XxTN1hs4qEg2S47JXB8GuHxUDvO1MO5BL9VyjxECDOjl b4YUt9sOdOe90DIX/9NuT/AX354QFlQq5ARbbqlLS3VfELUTpnQxxRcT7HCQsNMsjrlr PERw7Kxfm75orF6G+b+3o5GgimwBg7vSJK4R+xvuA/YSEb7djDn2dhkWD1hLGZchj+yI ereIvSkTD3JFu8f5AYvkrqEfs1Uy3o/1e789U6gmUrQkY8tSi/SDid48LbOulPq0EuPj fbl3Y5YYWsyazKDWsmyQIWKVtTpE9i0HIvXqPW9DctP5E3GrT5UpImS08e5uuUFecnAH fkfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uB34KUbYODGd6H0x91OAw/g8BpGv0WV+uoI5CDSaq94=; b=tRof6UEH3p08bWbJJQbaf2Mb6iEVTgrkFhD1cE+hDnfdirx3xY+AM1KZig1LaEskr8 XzUGqPJwVYt5ITGa3Aea7BjdGBfQplEEGZvB/f1xBLXXVxFTrebCUi2I06csVU+BIsRr D/vuKwlzfcMmrJgqVjDrut00N69llmytutaB7kBE9bUCILXSYp4O4kWfbBppfdgyYp78 PRG3IpHZ80OgVyvqCKKkQE4pEyWzuZJS8klOkbFu1YE3+f70d1VpXYRJ/vbNUievrS/2 /Y0me5LbXddzZEsw2uYJvCk38oibeJjyDHojVOW54424ciCZrFboC7CalULsrhAvS/yS 3oDQ== X-Gm-Message-State: AOAM533ObYk1CKKdHLolTPNdz4aW+md1vPDJqEr43ZU3q36tYTeBxBSE AUgrjgJfFNHHr8nMb52CKzuYe7lbTfL14pfxfntCwOzwjXQ= X-Google-Smtp-Source: ABdhPJwFjn336975XPcbX3coNI+wwsqTQO2o9d637SufoVwbBP5Z+ua0Oqp1qCIwrYKypLVEPGBhcx+kkU3LkPbiZuU= X-Received: by 2002:a17:906:55c1:: with SMTP id z1mr6616756ejp.229.1621542887126; Thu, 20 May 2021 13:34:47 -0700 (PDT) MIME-Version: 1.0 From: Sudharshan Krishnakumar Date: Thu, 20 May 2021 13:34:35 -0700 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-users] access to different ports on the same NIC by 2 DPDK applications 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 Sender: "users" Hi All, Have a Qs related to-> access to different ports on the same NIC by 2 DPDK applications. Setup: 4-Port 10 Gig NIC card with ports bound for DPDK usage. With intel=E2=80=99s igb_uio kernel driver (used for binding NIC=E2=80=99s = ports) using dpdk-setup.sh, at the /dev level, I see 4 device paths created, /dev/uio0, /dev/uio1, /dev/ui02, /dev/uio3 And I was able to run 2 DPDK applications concurrently(by blacklisting the ports in EAL parameters), and they were able to take ownership of different ports on the same NIC. For example DPDK_APP1 can take access of ports->0,1 and DPDK_APP2 can take access of ports->2,3. Currently, I am using another DPDK app that relies on binding to VFIO driver. So I am trying to switch to binding NIC=E2=80=99s 4 ports to VFIO driver. Enabled VTIO in BIOS and added intel_iommu=3Don in kernel boot-param in GRU= B. After binding all 4 ports to VFIO driver, using dpdk-setup,sh, at the /dev level, I only see these 2 device paths created-> /dev/vfio/vfio(control channel) and /dev/vfio/1(essentially just 1 path). I am able to run one DPDK application, for example-> PacketGen tool. But not able to run 2 DPDK applications concurrently accessing different ports on the same NIC, due to DPDK application not being able to get access to the ports. For example, if I launch DPDK_APP1 first, it can get access to the ports, but DPDK_APP2 is NOT able to get access, and vice-versa. Note that both apps are trying to access different ports on the same NIC, and also ports have been black-listed as part of EAL params to the DPDK apps. I know this is possible with igb_uio driver. Please let me know, if it is possible to do this when ports are bound to VFIO driver. Thanks, Sudha