From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by dpdk.org (Postfix) with ESMTP id 5F0D58053 for ; Tue, 9 Dec 2014 07:30:44 +0100 (CET) Received: by mail-pa0-f46.google.com with SMTP id lj1so6757873pab.19 for ; Mon, 08 Dec 2014 22:30:43 -0800 (PST) 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:in-reply-to :references; bh=RUcGZWzCctQ5LrKOY3qgQFYzfujvZ89Z4mFGtMRYM0A=; b=HAPhHnbkANHkssH2Bg2remAF0VHYiL5aVTtHBkdmKGKUL0+N2UMuX4UYUA1yDe6EfJ UiI6EPOo7U8Ltj8q4uffjtWm3yE5vf9xo5zuhE6DVVc9KraN+4jY14px8ujVYiASqzE5 jEhz2iWBiuwKAZvWnlyam9xuCrvbLyNH70j5mifmBtUH/SXgRXy25WyN/uRrJk5pXcmB +UrXlaMpXNWwsINZ3jCHRQXg/jcDctV1EvPQ7hhZChI8N5TL3ODj68n7VTA1Vgar5eHn b3KD7ijUREp1bA9hx9JBd93JhA5E2uvXnbYRkvVJrqhXOjeg+DVgbDURQaDbd9TcHo51 VGPw== X-Gm-Message-State: ALoCoQnHAdYCHYFbtXTEy+5t/WYt5hlsq4HQNju/cHksBbBEBxFTQRawTM/bzaZC1uTAm9hdc5na X-Received: by 10.66.235.135 with SMTP id um7mr2453111pac.94.1418106643630; Mon, 08 Dec 2014 22:30:43 -0800 (PST) Received: from eris.hq.igel.co.jp (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id f12sm403088pat.43.2014.12.08.22.30.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Dec 2014 22:30:43 -0800 (PST) From: Tetsuya Mukawa To: dev@dpdk.org Date: Tue, 9 Dec 2014 15:30:02 +0900 Message-Id: <1418106629-22227-2-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418106629-22227-1-git-send-email-mukawa@igel.co.jp> References: <1416474399-16851-1-git-send-email-mukawa@igel.co.jp> <1418106629-22227-1-git-send-email-mukawa@igel.co.jp> Cc: nakajima.yoshihiro@lab.ntt.co.jp, menrigh@brocade.com, masutani.hitoshi@lab.ntt.co.jp Subject: [dpdk-dev] [PATCH v3 01/28] eal/pci: Add a new flag indicating a driver can detach devices at runtime. 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: Tue, 09 Dec 2014 06:30:45 -0000 This patch adds "RTE_PCI_DRV_DETACHABLE" to drv_flags of rte_pci_driver structure. The flags indicates the driver can detach devices at runtime. Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/common/include/rte_pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 66ed793..b819539 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -199,6 +199,8 @@ struct rte_pci_driver { #define RTE_PCI_DRV_FORCE_UNBIND 0x0004 /** Device driver supports link state interrupt */ #define RTE_PCI_DRV_INTR_LSC 0x0008 +/** Device driver supports detaching capablity */ +#define RTE_PCI_DRV_DETACHABLE 0x0010 /**< Internal use only - Macro used by pci addr parsing functions **/ #define GET_PCIADDR_FIELD(in, fd, lim, dlm) \ -- 1.9.1