From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id A7D8C952 for ; Mon, 6 Mar 2017 11:57:09 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id u132so5031741wmg.1 for ; Mon, 06 Mar 2017 02:57:09 -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=MX1QYPjYEPUkbIcTa5JAEB2t21gmoBRXwbFKMhBIoZg=; b=CFJY3beG0sCXVVLo2iE+gZEB3/OI3hk6pA9xuAtjB18yCPd5449Ml0VWQaCbss9+s/ pCLAo5auqR5syjfL1Rc9g9XlH8ICFxUPkvkLqSuMwJpctoHQExyvhItPhN/+siDviE4x QPMLD8eKr4+LPIBP+EjMzMIMiJKP7eQoLnog9SkjnO3LmN3fTqeZaKxl+1RerWDxpw+n uqb8BgWyI4E8I42cic5axG3t6RRFIkXjElWoRqxZfVlpeUmHCGXxLwzLHAoPhQaM35va 9I3B5n+1UNhBYutT5BsmuJzpG18YoRAJ/E1+ytELSx+sJqQXLVCW6CoeE50SRRnrO0BI GwvQ== 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=MX1QYPjYEPUkbIcTa5JAEB2t21gmoBRXwbFKMhBIoZg=; b=HZ0MB438z4BtchrodfM2taoURejpvo3h+6isJMUvcGgo8iWeoo3HwV0KIAyasw9yJs p1dPeojEjbL1JMvLQnlTMeBu7W8LPOUgkWC5SHQeJwFHHR/mlB9ye/FAYYzgQ4vd8INq y+deUDqbfjCBJ6jwbuGcO5iGBS7KvDXabYciWXgNGyM019+FoYIFPjw9g9TylvTod/mX zxkP/qMvFckCEfQdxIWPFXp1jUkgHLWah/gLYAs3cVcH5aviDBCjOBAwNygwjUlp9iwR s+C172HfZ8SDZsNvubRxMi+lBY3mA5XMqDqG9B1nqOk12kvdSmN8aLZrCKKKZjYdyCZO fHWw== X-Gm-Message-State: AMke39kC6VXAhqLneluJwsu3bAnTua9+N/zQkZnxMerJQlW3XRv0BrWwwEPimoQa5QC7ZQ== X-Received: by 10.28.61.198 with SMTP id k189mr13278758wma.71.1488797829519; Mon, 06 Mar 2017 02:57:09 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id o63sm14277896wmo.30.2017.03.06.02.57.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 02:57:08 -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: Mon, 6 Mar 2017 11:56:45 +0100 Message-Id: <1488797809-12917-7-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488797809-12917-1-git-send-email-jblunck@infradead.org> References: <1488797809-12917-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1488018496-995-1-git-send-email-jblunck@infradead.org> References: <1488018496-995-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v4 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: Mon, 06 Mar 2017 10:57:09 -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 07974c5..f884c7b 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