From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 47C8C2E81 for ; Wed, 3 Feb 2016 10:26:42 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id p63so155460548wmp.1 for ; Wed, 03 Feb 2016 01:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=dK6p3SsuWeNgU6N6/XBBScRaTGRQ8DGRsQ/bOZYXxqQ=; b=cCa6odoOaN7mk6StvuEghLRWstS8+rW3eXehSqcUIKeTl9Frt6AbwBT1IYhpAJjV0i L76l4uzePLzR/dad4q/bAIQRXm5rbDLFCSUkjVWYLpAxB0EUNLxWrNmEE5g7shgl3I8/ gmKhIcdoJ86LIPiq9NQl/vO4vH1C3GXad1y78ypqGNOUUw/KEtx8X5MzfghoamisjG+u tGUJPyuAJVqadZtXQWo9PDcwAmL5nS+h+lfhJmRv3IK8nIDglUmz7ESJLr7+jjL76nzl phY5r3QbqTBY2eMq4K2btT3Wc0tQPtb5bPK4eELhmd2Vgwi1/LRRUOBjkBqCLrv3TSMb lA4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=dK6p3SsuWeNgU6N6/XBBScRaTGRQ8DGRsQ/bOZYXxqQ=; b=ViDtQ5kw5nqZsanyYZ7CJQzU4Vzj0On56bw4eKZle76y7S7Jof/eePk2aUXZ5tewYt c6xrTPslrX58ZE8CiTSZKOWlQh4BqdfYcLAwh29gvf3z2ptPn3Yg+02F6eEOlis08++r EIuu21//0Fpfv/ZywW7oOm5sjG1j6wqyxcwVFSk9w+Ufd5pvgWSF1TDRMB7DCTLEvZUI rYuYAfw36HFWjL87gGQ2u3Uk7baVFZ+O3ZQwEUXt+FnqSAp/H0HbQ+yWwAkiyNXSkiyB +LO6kEQ7h3VwntFT4TwPYeQx72jXU03kao3GUH2XYDdbBpRXFg6NX8KnW+TLA3txOf65 a/Kw== X-Gm-Message-State: AG10YOQEIWaXlrxYB2wl6TVVslaaBHxm8GBIjfrqg7sITz2Rxo1giKKiLNvFKdXWVba0WHJb X-Received: by 10.28.104.87 with SMTP id d84mr2786641wmc.56.1454491602006; Wed, 03 Feb 2016 01:26:42 -0800 (PST) Received: from [10.16.0.189] (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id h8sm5528544wjw.6.2016.02.03.01.26.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Feb 2016 01:26:41 -0800 (PST) To: David Marchand , dev@dpdk.org References: <1453476464-31767-1-git-send-email-david.marchand@6wind.com> <1454078953-23744-1-git-send-email-david.marchand@6wind.com> <1454078953-23744-10-git-send-email-david.marchand@6wind.com> From: Ivan Boule Message-ID: <56B1C7C2.6070402@6wind.com> Date: Wed, 3 Feb 2016 10:26:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <1454078953-23744-10-git-send-email-david.marchand@6wind.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: viktorin@rehivetech.com Subject: Re: [dpdk-dev] [PATCH v2 9/9] pci: implement automatic bind/unbind 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: Wed, 03 Feb 2016 09:26:42 -0000 On 01/29/2016 03:49 PM, David Marchand wrote: > Reuse pci hook to implement automatic bind / unbind. > The more I look at this, the more I think this should go to the PMDs > themselves (with options per devices to control this), with EAL offering > helpers to achieve this. This sounds good to me. As a basic software design rule, the decisions of using a given resource and/or performing a given operation (the intelligent knowledge) should systematically be taken at the maximum possible software level. Conversely, such high-level decisions should be offered the most appropriate low-level services to facilitate their implementation. In the case we are considering here - the need to bind a PCI device - the Poll Mode Driver of that device is the only component which actually knows. Conversely, the EAL layer is the best place where to implement the OS-dependent and/or architecture-dependent device binding services to be invoked by PMDs at PCI device probing time. My 2 cents, Ivan -- Ivan Boule 6WIND Development Engineer