From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by dpdk.org (Postfix) with ESMTP id 2A5615F17 for ; Fri, 15 Feb 2019 03:11:20 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id y10so4164101plp.0 for ; Thu, 14 Feb 2019 18:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6nFE9W20UlLuSqplMYukY9UUk2cTndyirLa3MlAlRm4=; b=D4CCfC2xnp0JwECeC1pwuj43lBWziq+RvtoQdtQ/xD8ckX4B+TlHve1ThuCzbJNfRw 0DswWWSxNhT6cdCYz0H8t1vMJRDfxZnI7TUq38djuWW/kUHRGGkl+GXZlKudy4lZa8yn JKclmKw7KHuPPP0abDqbnVTMLnUR2Q2gLXGTPRcb6GbVuZmOL2w6jfOmrbrmYBI5BNq3 icSlz7JSkMUf1VFmq+BrE5opxnOVYIQEcCaICq5eqFCpoHr2eH9hBn+05nQStuaXhXlM LmA3POPkoUwN7bLL85RPbi4TAQxj38Q4OVoFmK+aWZ07BFyN/pRjecwkiswaarQn6wHt RC4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6nFE9W20UlLuSqplMYukY9UUk2cTndyirLa3MlAlRm4=; b=LusCyJCQvAQtGbnnQiMIYBI9nawyt87QlpAhF/yTkSpmE8B2tfcNjCCK+B8TmK5NQn nQj5wD/Kq+hgWj9vUAZxGaz8zAxyRCVxXvG3isDOFccimjWqD3XRzJBwh/uAB/JXg1SP 8YyJZ1pT4F8fyqOUaNre+lJxz0xUyoA6c7Mkc2KBkPhQveOhwhTVbUGOefwSxGYIfUf0 mBGyucccwJfyPTTzYaCB1RV2fqzsaE03WWi+9RAxO+7SmjUllWeqaSmiHtNooE1v3Y9u 0V72I9KMKiQv5qNkK0FkpFGhw4iB7qRg3GlSn1K1zH7ovXTqa6ZFNU91eWN3l0y9Hdhr dfLA== X-Gm-Message-State: AHQUAuY+lxSxAZiATcY4SHZJRDHBZ31adBHmwgbf62maLEI1LlsiqIkU uFXdtVYLs/WIGEqWixgfrgIi+Q== X-Google-Smtp-Source: AHgI3IZuzCgOsDx+fBGJy4Ox+osmvE87eOFEceIgju8SmTtCXLBkiF/80i42LlQcf4RAB+wOGDFEag== X-Received: by 2002:a17:902:b701:: with SMTP id d1mr7229879pls.124.1550196679143; Thu, 14 Feb 2019 18:11:19 -0800 (PST) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a5sm1368898pgv.12.2019.02.14.18.11.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 18:11:18 -0800 (PST) Date: Thu, 14 Feb 2019 18:11:15 -0800 From: Stephen Hemminger To: Cliff Burdick Cc: users Message-ID: <20190214181115.416fddc8@shemminger-XPS-13-9360> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] Mellanox + DPDK + Docker/Kubernetes X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2019 02:11:20 -0000 On Thu, 14 Feb 2019 13:05:28 -0800 Cliff Burdick wrote: > Hi, I'm trying to get DPDK working inside of a container deployed with > Kubernetes. It works great if I pass hostNetwork: true (effectively > net=host in Docker) to where the container sees all the host interfaces. > The problem with this is you lose all normal Kubernetes networking for > other non-DPDK interfaces by doing this. If I disable host networking, I > get the following error: > > EAL: Probing VFIO support... > EAL: PCI device 0000:01:00.0 on NUMA socket 0 > EAL: probe driver: 15b3:1013 net_mlx5 > net_mlx5: port 0 cannot get MAC address, is mlx5_en loaded? (errno: No such > device) > net_mlx5: probe of PCI device 0000:01:00.0 aborted after encountering an > error: No such device > EAL: Requested device 0000:01:00.0 cannot be used > > I've tried mounting /sys and /dev in the container from the host, and it > still doesn't work. Is there something I can do to get the Mellanox mlx5 > driver to work inside a container if it can't see the host interfaces? Is this Mellanox on bare-metal (ie PF). Or Mellanox VF as used in Hyper-V/Azure?