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 3B02D952 for ; Mon, 6 Mar 2017 11:57:12 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id z63so10862822wmg.2 for ; Mon, 06 Mar 2017 02:57:12 -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=koKHoyUL2IA1pdWI3ey5Mg6FFk7RvNoF3zs7OwA9bBU=; b=ig6YzU3+F7RNSolOvdUpx5tsqnZAIJchOZZboFjH5k3Xm5MphBO+46emUwf/g+Z+Zw tf0z/dlFix3CmMC7Dtfu//Opuc5bvIBlUWjvhVjNjkqRUDzqAspZqTSLfx4ttsnMChXr tVUr6s5BCqedBaHF0o58LJbkBj3zKrrhoYGQy42RWPmjjZlECDkLrv/PU0S24Ej9YcGO WUgQNZ92M0qrzcT40QconTWDQ6hM7AlGl/Fw6gbSKmoOUto+JF8KSmmM1dHuvdc6Im53 +FkWqpm++3WGqlBMz3ZDEw8sbRpJ+afeWEEgzoKOjTGqrT03VaQlKmnd2KuXxNQq4GRI lKiA== 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=koKHoyUL2IA1pdWI3ey5Mg6FFk7RvNoF3zs7OwA9bBU=; b=F8eNj2qzySGWTztycWbxWUJk2L3k65JPAU3GrWqd20ANdB8J3+vg99ZB0KVksCqKGk E5E/gIsjzxkk1BZNUqB5VlrCY80ZFYiK8zgcUBTj/jl/gMAsZh2apa8DQAFEwKMbMiag GJ/qjFK1sw5KPENlUTwebHipOSK3d82+sKWvYg/zi4n7ZGa+zOroPQY68kt/8bkdIDL5 vNlrzVslGO+21TSl9dP6sGJ+lhfbEkj2ctnTRXfagJ+dD4CSP2pzB4Fy9Uw81Si0WHv0 FKAA4zWM1RKtOOCoXa6do0pgA6DJnLr2AA0kXOZj3HP5PVM3o885FeYD2xc8l1k7JDC2 90aQ== X-Gm-Message-State: AMke39mbJ5OxBSfJKQqrQUGHKw5NLU21nTSdFnmVxGFxcuR6wXu7cJjHNOfCq33zgWx67Q== X-Received: by 10.28.113.9 with SMTP id m9mr13949180wmc.60.1488797831878; Mon, 06 Mar 2017 02:57:11 -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.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 02:57:11 -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:47 +0100 Message-Id: <1488797809-12917-9-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 08/10] eal: add virtual device arguments helper function 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:12 -0000 This adds the rte_vdev_device_args() helper function to prepare for changing the virtual drivers probe() functions take a rte_vdev_device pointer instead of the name+args strings. Signed-off-by: Jan Blunck --- lib/librte_eal/common/include/rte_vdev.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/common/include/rte_vdev.h b/lib/librte_eal/common/include/rte_vdev.h index abdefab..81f6beb 100644 --- a/lib/librte_eal/common/include/rte_vdev.h +++ b/lib/librte_eal/common/include/rte_vdev.h @@ -54,6 +54,14 @@ rte_vdev_device_name(const struct rte_vdev_device *dev) return NULL; } +static inline const char * +rte_vdev_device_args(const struct rte_vdev_device *dev) +{ + if (dev && dev->device.devargs) + return dev->device.devargs->args; + return ""; +} + /** Double linked list of virtual device drivers. */ TAILQ_HEAD(vdev_driver_list, rte_vdev_driver); -- 2.7.4