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 2355D45A6D for ; Mon, 30 Sep 2024 22:41:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98AB540273; Mon, 30 Sep 2024 22:41:14 +0200 (CEST) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by mails.dpdk.org (Postfix) with ESMTP id 4E7994014F for ; Mon, 30 Sep 2024 22:41:13 +0200 (CEST) Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-7a9ab8e5f96so401999785a.1 for ; Mon, 30 Sep 2024 13:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727728872; x=1728333672; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+0w6pDMNPb5llI+rk4HJZ94S5Wq4HWSN7x6BWpD8044=; b=Pa6HUM1XM3CyM8eDZ265TezopAHYOpk6e68Kykzdj3HaOsYlRDx2xvfW75oeSJywjm CwJfuOi0n2QYhZyDG8eK66v0SzHR2Ac6gk2AB0iFgiAIOocTdROC6v3UjC6CkL2pCag7 aL2aQ9UH1/X/RV8LSYmgD83IyydfDpsr0YvYqiw2wHQBQXe/rGdjg/AwImYL/bBFCLTx n8AhrlqhIzYKtTlcY3yAHqaJlTivq77ym8Uza4V4NJlKGxNRERYwrhbk4h/eLvP8N7Us CpBOnvkrKUNh6NPHU9NGFKT5GPAn314/gw3p0AfWcpmqA5PqgF4huGyp78XczNpLE0L8 +nwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727728872; x=1728333672; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+0w6pDMNPb5llI+rk4HJZ94S5Wq4HWSN7x6BWpD8044=; b=LP/zS6+feRQQa7HRYCnMx3LkiAYun8qyFhuBADbvYqEwzOD1+Nib1dlBpopxCcAHt4 /cpWpEdOBRwNaHIunN59uGWY2PaOMDXuYtrq1uclYuzhqD/W/tPqK+q/b+Fwf+g3OtcL ZjvUSTGgQtSEfpgEbvYZQmjyezv/Fi5dqpQc4tTdnDKP2deddCNLQzgHFzuaRt+fZKQ4 eDzyqyb/lLCLb0eOZIQBxMkUbCZM9w+iY2PwzN8blXdlOkyXKpl7LBC81PDqxA60UJcb 2ABFZKwZ3G0EVCP8ECtJPF75/ARxJovB2BsGJoNb/z8HzohAQwQvWSTMhrpvC5xYBoiw 2uPw== X-Gm-Message-State: AOJu0Yz54C1Vw59Qj4pYaUmQGxurE3ZJIwgt3dT0YZe4U9n4l+rG4i6s yKhDEqGMu7WrdMGut4sjWttCOjL171E3RU5RbOmTgvI7Xg1kE2zWLIIhoRYdwHV2qS5I2eUxpJL bTTfK6dWX37ZDlHpTsilaGZ5Xn94rQN4I X-Google-Smtp-Source: AGHT+IEbwPnHtxyd2rjMYVCPKSM7dIaqkJAbxQRariREjtRl0HR2AjAQzD3nu05l0SRuNbc+xeBONwdkpD7WlK92R5c= X-Received: by 2002:a05:6214:4982:b0:6c7:c75c:a734 with SMTP id 6a1803df08f44-6cb3b48a3c2mr212690126d6.0.1727728872479; Mon, 30 Sep 2024 13:41:12 -0700 (PDT) MIME-Version: 1.0 From: Igor Gutorov Date: Mon, 30 Sep 2024 23:40:36 +0300 Message-ID: Subject: Bind one port to DPDK, the other to the kernel To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 Hi, I wanted to ask for a bit of clarification/guidance on binding and unbinding network ports. Consider the following - a server with an Intel XXV710 NIC (i40e PMD). This NIC has 2 ports. One port is bound to vfio-pci (no VFs are used, if that matters) and is used by a DPDK application, the other port is bound to the kernel i40e driver. The kernel bound port is used for general networking (such as ssh, and so on). Based on the DPDK getting started guide [1], am I understanding correctly that this is not the recommended setup? Specifically, these parts: > Most devices require that the hardware to be used by DPDK be > unbound from the kernel driver it uses, and instead be bound > to the vfio-pci kernel module before the application is run. > physical devices may require either all ports bound to VFIO, or > some of them bound to VFIO while others not being bound to > anything at all. If that's the case, what's the correct way to support such a configuration? I guess, something like this? - Bind one port to vfio-pci, used entirely by DPDK - Bind the second port to vfio-pci - Create a VF for the second port - Bind that VF to the kernel i40e driver Am I understanding this correctly? Thanks! [1] https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html Sincerely, Igor.