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 97B045A3E for ; Sat, 25 Feb 2017 11:28:36 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id g10so4580625wrg.0 for ; Sat, 25 Feb 2017 02:28:36 -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 :in-reply-to:references; bh=ny6x79DlgyggBO1f41DMKbn60vWE+HOP5zg7bsKqXC4=; b=gOzuBgDvvvakfkF+qGkSZfmD745QB44C4mj78S1Jg9gaovnyH5XWpoWBMEiGHey6fh 1h78FRba60gbMJYX4J0XRfwjdb1nrTZrbt0+aaEy40D/YgjTwGX4AG4DBljnDCnf+O8G KhjNc7eVpKMJu8Mr66WZvFwvvq8d/WtquIyjVXzZIDL2qyNPkWchv9/AlhB9CCuTXrA2 ZQjom+pwePMKefPkjSslMyVJD36Pfsr8WsM75aI6A+B6xQQ+po5pNrUp9+7gVwEe2bH3 +NKoI6hjE6H6LeQAiK8RgS0EdxyPVULJ2XkYkXese8lSCxh5z3ds2krxAjzxHg/qDQtt vJuQ== 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:in-reply-to:references; bh=ny6x79DlgyggBO1f41DMKbn60vWE+HOP5zg7bsKqXC4=; b=plMeiJjXLj/OwhT8QpBHqjC8z9F6BM30k2pZw+0rZNCTdxQkvs7FfdjQ3syMoSJSNZ lwgbczZtPevOPp6zn2TpUKCumEdnK8ADgJyHznHfzGKntic0/RMvdccdLa7C57ZY0HZA aMFYP0PaqEDUVhK/gj5QqCQyin34rshJiVY4Kryy1FwlHnF1Du3RgMS4m3b4L67Dz1NO UXT5T9HaA6iYMS4SMtrS4E7SCP37dWt0OOXKOZJ7xo8osdx2AU7/tyf2RSWIIpfcmy0T UOBcqFiadBhGuSONuAOY9e5NO/G13OCU2blCtYDlsMAH7d0R/yJaOwyWmiQhBfq9WVMg u5mw== X-Gm-Message-State: AMke39loSgNW0NQzxbkCf3JV+nbC4KLRyIrHJ15BWCuHWJwa1r5ZyoosiQmX7DQ9D64taQ== X-Received: by 10.223.169.140 with SMTP id b12mr6531646wrd.138.1488018516445; Sat, 25 Feb 2017 02:28:36 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id e72sm5830893wma.16.2017.02.25.02.28.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Feb 2017 02:28:35 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: david.marchand@6wind.com, shreyansh.jain@nxp.com, ferruh.yigit@intel.com Date: Sat, 25 Feb 2017 11:28:12 +0100 Message-Id: <1488018496-995-7-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488018496-995-1-git-send-email-jblunck@infradead.org> References: <1488018496-995-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1487600262-14382-1-git-send-email-jblunck@infradead.org> References: <1487600262-14382-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v3 06/10] 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: Sat, 25 Feb 2017 10:28:36 -0000 This adds the rte_vdev_device structure which embeds a generic rte_device. Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- 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 5a267ee..c88cae9 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