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 85E48A00C4 for ; Sun, 13 Feb 2022 19:01:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1685E40DDA; Sun, 13 Feb 2022 19:01:24 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 2C8D24068C for ; Sun, 13 Feb 2022 19:01:22 +0100 (CET) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B7E7A5C009C; Sun, 13 Feb 2022 13:01:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 13 Feb 2022 13:01:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; bh=P9GdxTNbmlhkGT CkCAgKCL1NmWIamhAKXqNbXLcEh+s=; b=LxjH686wvnnycF/aN1AQjiVaA5GDUd +j1T6TosXkLDQsrJ/kJ9ES4Tb+DSdFW7yMzsSvmmQvuxgQzs87yZ/6Y0LWkTUwlD xU9Ju0MFC4Ti3bsaolp7VqJ1UbAu1RwcEW5QHf8xxvC05RXjDAaq4uX/IlrDot5T efPv+rfvPjdA5Y1NJ8gkFtQiSt8VcpoWotLtgHjCzSOGydmAMVUsEz45p5ru5r+H qt2GqsUlPBZJP5ty/FTffQiwc2A1pBcbWwZMdRVXaS1SRp9BfJvdX4imeYdRBf39 SZ0gCCuBJ5gffYQgMvQAPlqlhsMshP1rmMKnAPQBzBnBtBE1TxT+V6iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=P9GdxTNbmlhkGTCkCAgKCL1NmWIamhAKXqNbXLcEh +s=; b=V2WEwb5zvt7oAUI9W2I4ilCzJhsjjgwRG+W16k00dvWdl+OXOT0HmCZoa B5H4vADo/MOqtIYgDHy03///ElpFCSTKLo6y4JRTVDEnoUKRqLvrEHIRvFJWIsHs wurtjRRuOAtIkAITphWOwOluTu6E9QIDPONoFRn+6QDySnhUqqpr34o5Wm4JaLA2 YmSVX65cT2zi2XmzsdALGkeoV4Bdm0ZSsU4GLX4Rp7Rq7FSGpVHderacCnFVINej h3LEWvFAiMErGupq//qnycyOdAvWGBhMlyNweb9b/92yygf8Y/0eT2fFwGvrVGUL UX9qw5Mmj6uZXNFdBhBnbvC4QjYjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjedtgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Feb 2022 13:01:20 -0500 (EST) From: Thomas Monjalon To: Simon Brown Cc: DPDK Users , asafp@nvidia.com Subject: Re: Initial Setup and best practices Date: Sun, 13 Feb 2022 19:01:17 +0100 Message-ID: <3853984.2iPT33SAM4@thomas> In-Reply-To: <3256119.aeNJFYEL58@maktub> References: <3256119.aeNJFYEL58@maktub> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 13/02/2022 18:37, Simon Brown: > Hello, Hello > I'm new to DPDK and I'm trying to setup a simple project to count packets. I'm > using MoonGen to generate the traffic on one machine and can receive the data > using traditional sockets on another machine. So I know that part works. > > I've built dpdk 21.11 and I've tried to modify the example rxtx callbacks > application to count packets, but it doesn't see any traffic. So I presume > there's something wrong with my environment. You should explain more what is your setup. > Can you advise on how to verify that my environment is correct and what is the > recommended setup for new projects? Should I be using the virtualisation > interface vfio-pci or the other interfaces? I have mlx5, i40e and ice NICs > available for test. There is no best setup I think. You should check your environment with dpdk-testpmd. > For mlx5 dpdk-devbind suggests that vfio-pci is compatible That's interesting, we should take mlx4 and mlx5 as exceptions in this script because they are bifurcated, i.e. no need of UIO or VFIO. We should use the accurate info given by dpdk-pmdinfo.py > whereas mlx5_core > is a kernel driver, but trying to run with vfio-pci leads to: > > mlx5_common: No Verbs device matches PCI device 0000:01:00.0, are kernel > drivers loaded? > > mlx5 seems to work correctly with MoonGen. mlx5 is working with its own kernel driver. The DPDK PMD is negotiating with the kernel driver to get the traffic. The main benefit is that we can choose some flows to go directly in kernel, and the rest being managed directly by DPDK, bypassing the kernel.