From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 3B47EA2F for ; Wed, 15 Feb 2017 11:02:30 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id o16so30595279wra.2 for ; Wed, 15 Feb 2017 02:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=HVUqtPV7xe8n1sXR4HAzCbVMdUGMtAn1Z2Mp5QiFjEw=; b=n+fiicm6AJSD8e+On337Doc/CSlFTX9wkgFvgo6D9tRgZHAAic99T/IBHzvc9QzbNP PHu6YuAz/pOOE+bUcvm4Vt3OJsOwGe52lr/bhN+8bD1XN2RtYrCiV1zoE5MdQlkBGjv2 tuUI4WGosMdVSSVbLe21vv8RDQe6wd/czOfIrOQsVKJFgW804IYyQxIkc8IrZSoCIblC zwph/TMY3eShb4DGeaIeRqdXXxmyZblmv0VgpDiT0turt/MMsv3yB2XAKzDwCs0euexx cKkd0JG6osP/Udcl26Iece6X2fjT9XWchFuVjwdyMF1ThnSVzPix9y0nlm7x+jZjyTx9 jKxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=HVUqtPV7xe8n1sXR4HAzCbVMdUGMtAn1Z2Mp5QiFjEw=; b=BDSooTqanytWpC4vf7MCgds9aU/tpCxsWDpZFOQVG5yVsk4LNjEWbEPaGzkgRvNdy2 r6o5mfORqm3NAxG0a0if6DDC6+uFISSt4/86qDK+gSRNy1YeDDhirNA3G49D1aDXqFi9 b6niUBHodednCcB/G4LuUxb3X2XkXjdQATsT6G5N8tPO1z0h+7ThYTLKCzpUi8XZL8it quc1FOTyEWyvQeo3yXlbBVhy4NhPxFiEC2gXtJ7qfw06NNQVny4eRYciU3buwXnQ01Hl e7EpJTRQhUuBzQ4sl7TRpEJ2iMuCukQf1+JP1AWvmAJJCMFPoGL1EQpqPUrdFNFntYlp PPEw== X-Gm-Message-State: AMke39n1cB1jZFjVAjUcH1ENtT1I1VjFC4y1hmFo21MZ4MN/lIMZup7+GHA3BuPsGp5FdQ== X-Received: by 10.223.150.34 with SMTP id b31mr29963860wra.196.1487152950021; Wed, 15 Feb 2017 02:02:30 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id k195sm4716061wmd.7.2017.02.15.02.02.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 02:02:29 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: shreyansh.jain@nxp.com Date: Wed, 15 Feb 2017 11:02:08 +0100 Message-Id: <1487152929-23627-7-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487152929-23627-1-git-send-email-jblunck@infradead.org> References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH 6/7] eal: add struct rte_vdev_device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 10:02:30 -0000 This adds the rte_vdev_device structure which embeds a generic rte_device. Signed-off-by: Jan Blunck --- lib/librte_eal/common/eal_common_vdev.c | 5 +++++ lib/librte_eal/common/include/rte_vdev.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index 6ba3c91..61677de 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -42,6 +42,11 @@ #include #include +/** Double linked list of virtual device drivers. */ +TAILQ_HEAD(vdev_device_list, rte_vdev_device); + +static struct vdev_device_list vdev_device_list = + TAILQ_HEAD_INITIALIZER(vdev_device_list); struct vdev_driver_list vdev_driver_list = TAILQ_HEAD_INITIALIZER(vdev_driver_list); diff --git a/lib/librte_eal/common/include/rte_vdev.h b/lib/librte_eal/common/include/rte_vdev.h index 784e837..8f98372 100644 --- a/lib/librte_eal/common/include/rte_vdev.h +++ b/lib/librte_eal/common/include/rte_vdev.h @@ -40,6 +40,11 @@ extern "C" { #include #include +struct rte_vdev_device { + TAILQ_ENTRY(rte_vdev_device) next; /**< Next attached vdev */ + struct rte_device device; /**< Inherit core device */ +}; + /** Double linked list of virtual device drivers. */ TAILQ_HEAD(vdev_driver_list, rte_vdev_driver); -- 2.7.4