From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 874DD2BD1 for ; Tue, 15 Nov 2016 07:44:04 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id g23so145847539wme.1 for ; Mon, 14 Nov 2016 22:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=p4Aw1qQ5DeAZQtEh2gdzJ6s98sSLUV1jUhmRW5vAPIk=; b=hjuyQLWfnXCaZvMtLYzrEI1hOdhucBDoyh/LV4SIU/8No+opqoFi9/8y1L9KrCDX3v QTWB4pl+EqTcM7oa/4otizQ1GEnEx6UoEFf+cSmQNLq2FreBQt8CZjI4cTCjT7A8kH4L 7JvOf5syz8dwyyrSUcvnA90XImEICbzSPGaXCI7emgxvOoQfxGNqtQU0OlkZ+qqFb2QZ mE/hmyEmrcxXB5MgxghinKESsyh4vQoK8BkIIwsqQNHdLfisqfoQaXdkp4dqtuKVIb9q zuAgmu9TuKnhFUu8LHo6t5vFI9Uav+00M+Ogsp5As0S7BLpseb6/fhIweA9C4Whg1WaM 5nlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=p4Aw1qQ5DeAZQtEh2gdzJ6s98sSLUV1jUhmRW5vAPIk=; b=kXVLKvlfUMz/nQB+sUZ/Z5DCsN8G1qCBRDgH802OSVHEKTMqu0HB6jek/3mOz2DqXD gqO0f0EAwtdORJmvlxAQRpyMZqBsZCHeHjqknztQOIYR7wDD9EUWzm+AQfHfT/xoarv6 E8MaHKbzCirROimP6zlGACv1QwqOaGiBcPpDfVUsH5fXNFtOyzjhU+C7Gsc928OrKM41 8i9VXSnndmlKmP9LSotPJCBYw3A9WZPaaWTxAUD9BhKEAhu8xexbvJeMt7T+j2YxcNe0 I3XJ2Y5JsOT1pGXZoVNBCzZdxKgmqjqmEmv1v4UlJwjtucvd9TlFafIn3fMVuHcXl3BV vLgw== X-Gm-Message-State: ABUngvctmPS1GD+8XTi/VrAUKbcNtJUIKWVjQXAIghcmcvuomQj+QoTXy/Ki/JQzcb192bLqnXwaM/ERQsufiA== X-Received: by 10.25.76.195 with SMTP id z186mr10138675lfa.104.1479192243996; Mon, 14 Nov 2016 22:44:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.62.17 with HTTP; Mon, 14 Nov 2016 22:44:03 -0800 (PST) In-Reply-To: References: From: Nagaprabhanjan Bellaru Date: Tue, 15 Nov 2016 12:14:03 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Not able to access /dev/uioX from inside LXC X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 06:44:04 -0000 There were two issues w.r.t the above problem * The uioX major number is not fixed across machine reboots - so I had to keep two-three major numbers in devices.allow section to do this. * The sysfs was mounted as read-only file system. When I remounted it as read-write, all problems went away. I could access 40G ports from inside LXC container. Thanks, -nagp On Sat, Nov 12, 2016 at 8:02 PM, Nagaprabhanjan Bellaru < nagp.lists@gmail.com> wrote: > Hi, > > The instructions mentioned by Krishnamurthy here: > http://dpdk.org/ml/archives/dev/2014-October/006373.html > > greatly helped to make progress on accessing PCI devices from with in the > container, however, DPDK is not able to open them because of privilege > issues. Has somebody been able to crack this issue? If so, can they please > show me the way to do it? > > -- > EAL: Detected 24 lcore(s) > EAL: No free hugepages reported in hugepages-1048576kB > EAL: Probing VFIO support... > [New Thread 0x7fff8ece0700 (LWP 22134)] > EAL: PCI device 0000:06:00.0 on NUMA socket -1 > EAL: probe driver: 8086:1583 rte_i40e_pmd > EAL: Cannot open /dev/uio0: Operation not permitted > EAL: Error - exiting with code: 1 > Cause: Requested device 0000:06:00.0 cannot be used > [Thread 0x7ffff7fe7700 (LWP 22130) exited] > [Inferior 1 (process 22130) exited with code 01] > -- > > Thanks, > -nagp >