From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 734D869A5 for ; Tue, 11 Apr 2017 17:44:36 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id w64so67192956wma.0 for ; Tue, 11 Apr 2017 08:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=fbkoZIx8jHt5BBUAloNRTPIROffKhSj5w12UXu1llhQ=; b=HSC7tyydPxMsvJ5pXzzi4ltZN+NnaQqlUWAiWxvPBMW5Ys3GeqbAWoaboCoAsZwy8f kOcNirZkSNofwES20PDawGM3/hvm+OYr8LCrRCa2uljnWFDDALalX0tGsuY988yab2Zl E5v0i73b6i6rUSYhfZ9+frBM6k+pLtQuvLMLjExco7THpu6gB6QK1HzSI8RLDN7rvhUR Ywxj4vuqYn3BnjeipxEGM1kN1zGdEAtNcSnaUzUgHyWplOP8xNJ08CfHaojaxDctI+XT yWhb2BLTLo/pjy7XQBo05WlERvgqQUqOvKK8UEpVV5v9VcHKN5Q7E/Gexp9OuLPLmUCj bQ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=fbkoZIx8jHt5BBUAloNRTPIROffKhSj5w12UXu1llhQ=; b=P8uUEOBikjcm2rdH5pfBi1eF/tgIsthxajbe0NL8i8w6jxkOPJoFfVNVe+qcDSR0T3 rpjMkWIdvrMrX0eNf6fY0/kYgvT33qrJZfYdqkPWHAefElr15ziogui8lYUHpRk/djTU Q2gTdHbX7ArndTQWDY8oREK2kjJUcKKvYQ4VuFWcYfgeworPkHILYq3A2BRr7ziel3kx bw+bh+eq3H8Ww2dMp3ouekBo4drV0dvaa0E1snL4JZhKqKrYcCm/yEm0fcM6f7+JYr9q lz7Qh9bQRryd8qZD+yt/zhqhJTw6Xp4lNnOXAwxSyjeBaW6ZbXNz6JRDukGE1abdqMA/ Uceg== X-Gm-Message-State: AN3rC/6oaBG1KhrKXffl7nE8ZgQSq5GULI6nquZlB/17BgtJwJwnEAMt 3jgDvKQbPL7BjiHl X-Received: by 10.28.159.143 with SMTP id i137mr15359434wme.128.1491925476226; Tue, 11 Apr 2017 08:44:36 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id v14sm2936830wmv.24.2017.04.11.08.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Apr 2017 08:44:35 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Jan Blunck Date: Tue, 11 Apr 2017 17:44:11 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <1488797809-12917-1-git-send-email-jblunck@infradead.org> In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 07/12] 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: Tue, 11 Apr 2017 15:44:37 -0000 From: Jan Blunck 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.1.4