From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 25AD66A68 for ; Thu, 12 May 2016 17:44:34 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id g17so143132372wme.1 for ; Thu, 12 May 2016 08:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=lT6wwL1J1uFIDwdFTkl3oRffYhaJoZ6xkf/tA2nt/po=; b=DTfU2Ajm8JoDDK6iInhqK6lDY+F5NI/T5x5ZrmWSSk31WATc4E8jJ4y5qFvPR/PPKC edyYV42ZAu3LviMFvB8T+8eSjKSXGacjv7FycjG+MmQT2pzzZ3I8COC6vKPklALeepJD fljSocCiiC6I+LZBiBVMUChV/vY0UaUDpbyj8Sq5Rybwx/uyF2aAmEBvWySpa/aDnhlB N/hnbusbNM6tGBww0QUdj//seO0SXrH3yyhi5xLhoWAJZkCxdVGh/w3eMae78jTEd3mE cPNESRh1v5Iq2PLt1TJa0W+dxic5DJ0zLoWYzE4hmNds2C6QZl29tMTmyF2/EppNUEqB tiXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=lT6wwL1J1uFIDwdFTkl3oRffYhaJoZ6xkf/tA2nt/po=; b=HZVB9rMbNO44XejlyXt9Ds7XwP4Et67uEW3qkKsNDG6B+OKDg+SC3XBgfhPbVkOwa7 /VTtluvl7KR2iSaekoR/XtSTAK+/irP2ZOnmmkUDP5FHIbFDIP4ZUPdbEpg37NmdO5hx pSlCmtjCH/gXx6RlTgYlrK0m7g2KSn5gWMJEaPsrl1ZBBv5L4bx94QZ6wN16IlEXJ6UP ITWIaf1oyi5IeTtwyK0hQbGFCKBKIT+BIqfeZGHEBYVLGjarpTjris4xNWevxGyIcn4O 4JbD/avVxuhI+HzJZw+P1jBE4J6vWog0yyGEcDlQxOanCUJt3Tp4hw/qbCHlB0fkxsu/ 6iuQ== X-Gm-Message-State: AOPr4FX9B2ZiUwz6lbA1XfDdJ7CLsWOi40iWGQCu7wPSp2Opt4Z0MrhX4sKKOz+r98e8B75/ X-Received: by 10.28.210.72 with SMTP id j69mr7426744wmg.12.1463067873998; Thu, 12 May 2016 08:44:33 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id b12sm41930715wmb.0.2016.05.12.08.44.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 May 2016 08:44:33 -0700 (PDT) From: Thomas Monjalon To: Jan Viktorin Cc: dev@dpdk.org, David Marchand , Bruce Richardson Date: Thu, 12 May 2016 17:44:32 +0200 Message-ID: <1620118.tLdukRlgES@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1462904011-29838-10-git-send-email-viktorin@rehivetech.com> References: <1462904011-29838-1-git-send-email-viktorin@rehivetech.com> <1462904011-29838-10-git-send-email-viktorin@rehivetech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2 09/11] eal/pci: replace SYSFS_PCI_DEVICES with pci_get_sysfs_path() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2016 15:44:34 -0000 2016-05-10 20:13, Jan Viktorin: > The SYSFS_PCI_DEVICES is a constant that makes the PCI testing difficult as > it points to an absolute path. We remove using this constant and introducing > a function pci_get_sysfs_path that gives the same value. However, the user can > pass a SYSFS_PCI_DEVICES env variable to override the path. It is now possible > to create a fake sysfs hierarchy for testing. The headline do not convey the intent. It could be: pci: allow to override sysfs