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 CA4B242EBC for ; Wed, 19 Jul 2023 22:05:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 494BC40E03; Wed, 19 Jul 2023 22:05:31 +0200 (CEST) Received: from caracal.birch.relay.mailchannels.net (caracal.birch.relay.mailchannels.net [23.83.209.30]) by mails.dpdk.org (Postfix) with ESMTP id 3162840DFD for ; Wed, 19 Jul 2023 22:05:28 +0200 (CEST) X-Sender-Id: host4yourself|x-authuser|mailbox@wingert.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C71E65C1085 for ; Wed, 19 Jul 2023 20:05:27 +0000 (UTC) Received: from mercury.iwebfusion.net (unknown [127.0.0.6]) (Authenticated sender: host4yourself) by relay.mailchannels.net (Postfix) with ESMTPA id B6F515C139C for ; Wed, 19 Jul 2023 20:05:26 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1689797126; a=rsa-sha256; cv=none; b=hOo5VIMDBeW3a6ibSX4UyZxN+NiUMsmfsgBEp1TQoYIrJKfwHr5Vito5eHPVtUfIjUT12v /gXgiIG+4IOszaRzoE/g8G9Zfd7fIxStAJKlJSkcJ1dWG82Mn8mcc9mJJXVNd7I7ZOKgkZ Yaa7GDaEHHSbCF7O55g4R51+OWGvD29cbPddSYiXx7KWIvVIJNps2b1f8lvrVZrsZxFDK8 IZ+eXeggFUiE+zTj6GAwzhqgVkDdzUNMPzMqRUgXMOnJ9ZNlN5CygJSPC3b3fY869SEQ67 g3/9gkakcikU6ypgfZx+1BZT2+1WtQIAPc+NmevzBmViDHN+W6VQWaYcBgoTmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1689797126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=tsL5UXSnDGiRqLX6YmBdcYCLJ6+BB6rMAlZYCMVvJSo=; b=wryWv3dRSASOHU3yzERhcCE0PdvaQ3kNE6f2FJu6KQtuB9BWl8/nvUkUiDIHXU0Y6r7W9u dj95cMaGki8irRQFTasCExErL5J9OamNnzZ412K+zYWMhV7tIMqBpOoJAjJIgqvXQombnI rrPhugQb8x9xfroZWMI5VUSMwe9wX4Rn9OZtKUwNmEy4XGxptx4MHya8ElO0qwgmwdxE5q X0G9oKeDyGqQpH78c79ePr6cI1bc6RdPIlt7Ep451rbd65B8xGSarGnKganbXVtgcLRVFx hSXJTMUCh1KNPkr3a4B2xtaz59mKxVpDIh+PEJV7bWFvjH72PYnMEVRPeyuXpA== ARC-Authentication-Results: i=1; rspamd-965c5b9-8nntd; auth=pass smtp.auth=host4yourself smtp.mailfrom=usenet@wingert.org X-Sender-Id: host4yourself|x-authuser|mailbox@wingert.org X-MC-Relay: Neutral X-MailChannels-SenderId: host4yourself|x-authuser|mailbox@wingert.org X-MailChannels-Auth-Id: host4yourself X-Belong-Zesty: 72287f962152399e_1689797127008_4187313876 X-MC-Loop-Signature: 1689797127008:2415965921 X-MC-Ingress-Time: 1689797127008 Received: from mercury.iwebfusion.net (mercury.iwebfusion.net [155.254.18.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.30.5 (trex/6.9.1); Wed, 19 Jul 2023 20:05:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wingert.org ; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:To: References:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=tsL5UXSnDGiRqLX6YmBdcYCLJ6+BB6rMAlZYCMVvJSo=; b=a1AIDQ5w/o7yiv+ALEKbAoFdxi f8nwrr5jUyUNZ/aXXmJnBNQNUAmhRH/sKojZuZwdHuc8q2gWFu8Zq8iG4dTPDEbSHJa7CutoFv6zv l3e0JUVH64WTg/7TikJxOJE+6yhBDxm65QhAHJCjyBhJYPfhWiXhbmVWGKYVUEo5dgbwxX8N3d3Go 2cFMPQk4gJo6PV+aruERz++59JLUTTEToENDWhapvt6BkAsa8YkNJTkR4jKPlecNVubE7QObeXQT0 YzoBNUM5viNdD3iVkQl3BOQJ9wmmimInH81BmlkqCwtQnrErBkp3p/O2AD7PFR1zOeZ0wLP0LSlqk cK9SeLHw==; Received: from cpe-70-95-81-71.san.res.rr.com ([70.95.81.71]:64121 helo=[192.168.1.6]) by mercury.iwebfusion.net with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qMDQN-00GjRv-1s for users@dpdk.org; Wed, 19 Jul 2023 16:05:26 -0400 Message-ID: <7c277681-c9ff-2494-b820-456d153db36a@wingert.org> Date: Wed, 19 Jul 2023 13:05:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Fwd: DPDK Tip in Docker Container Content-Language: en-US References: <3594eba5-ba63-a25a-a8af-245303143706@wingert.org> To: users@dpdk.org From: Christopher Wingert In-Reply-To: <3594eba5-ba63-a25a-a8af-245303143706@wingert.org> X-Forwarded-Message-Id: <3594eba5-ba63-a25a-a8af-245303143706@wingert.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AuthUser: mailbox@wingert.org 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 Answer my own question for future google searches. Digging through the mlx5 driver source, it looks through the netlink kernel interface to get details about the hardware. Without access to the kernel data, DPDK can't init the mlx5 driver. You need to pass the interface into the container via the ip command https://stackoverflow.com/questions/60189587/how-to-pass-through-physical-nic-to-docker-container Thanks! Chris On 7/14/2023 12:51 PM, Christopher Wingert wrote: > Hi, > > I am trying to bring up DPDK tip in Ubuntu 22.10/Docker.  When I run > dpdk-testpmd, it doesn't seem to be able to find the Connect X5 > interfaces.  I get an error "mlx_net: Unable to recognize > master/respresentors on the multiple IB devices." > > dpdk-testpmd works fine outside docker. > > The command line I am using is > "docker run --privileged --cap-add=ALL -v /sys:/sys -v /dev:/dev" > > Thanks! > Chris >