From patchwork Mon Nov 7 11:15:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 81026 Delivered-To: patch@linaro.org Received: by 10.182.113.165 with SMTP id iz5csp1029657obb; Mon, 7 Nov 2016 02:17:20 -0800 (PST) X-Received: by 10.55.177.5 with SMTP id a5mr6264812qkf.229.1478513840331; Mon, 07 Nov 2016 02:17:20 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m15si15552924qki.262.2016.11.07.02.17.20; Mon, 07 Nov 2016 02:17:20 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 02DBF60AE3; Mon, 7 Nov 2016 10:17:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7741560D16; Mon, 7 Nov 2016 10:16:28 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 91E8060BDD; Mon, 7 Nov 2016 10:16:15 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 6A20B60B0D for ; Mon, 7 Nov 2016 10:16:13 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id o141so37177973lff.1 for ; Mon, 07 Nov 2016 02:16:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=20GwvA093bnxkJwg0MbCRBKS3DYyHXyWlPTCs1tIeIA=; b=FiyCTfuEn0TnpzPjLsEZ+6tUMZMY9cnM3/oZ7spyd8Kr50lSIOqsjT/4e7qAzzI9s6 qHJprQp2CQjM1SrXUdacL0KpofhtY5zhTZXgyzKwvEw6TVajVlBU024mIXV1dnY7FxJW FmQrriDoZZzD07drOSMKT3kYW3j7fGpxS6amYKlUAQyIb2iB2eV5I7FrxOz6Cxpwg4sy 8QP21LxI/oj0uv3dp9n0LPgdkSl1Rrj8ABikIks/D9ui3f5XgQBHxUJKyPFCQ6/xY9z5 fZgs/RhE2KtWznpUJyMAkvzvtI9dxfZGSvrBgq/TgTnCf04CSLhVVGNyyUY+IK9U+grd 0chA== X-Gm-Message-State: ABUngvcHoyLnjqDHHI9DqxM68BSQit0U7f7dfmDYs299tXF5i99j3FZ2MpJG4wmqJ0F2rPvCA8A= X-Received: by 10.25.152.149 with SMTP id a143mr3001556lfe.33.1478513772245; Mon, 07 Nov 2016 02:16:12 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id w67sm4932592lff.16.2016.11.07.02.16.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Nov 2016 02:16:11 -0800 (PST) From: Christophe Milard To: yi.he@linaro.org, mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Mon, 7 Nov 2016 12:15:22 +0100 Message-Id: <1478517324-11324-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478517324-11324-1-git-send-email-christophe.milard@linaro.org> References: <1478517324-11324-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 3/5] api: init: driver load function added X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Function added on the north API to load drivers. Signed-off-by: Christophe Milard --- include/odp/api/spec/init.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.7.4 diff --git a/include/odp/api/spec/init.h b/include/odp/api/spec/init.h index 154cdf8..bfe43df 100644 --- a/include/odp/api/spec/init.h +++ b/include/odp/api/spec/init.h @@ -270,6 +270,22 @@ int odp_init_local(odp_instance_t instance, odp_thread_type_t thr_type); int odp_term_local(void); /** + * Driver loading + * + * This function is used by the application to load NIC drivers into ODP. + * Calls to this function are optional, but should be performed (if any) + * after odp_init_global + * + * + * @param filename Driver shared lib (dynamic library) + * + * @retval 0 on success + * @retval <0 on failure + * + */ +int odp_load_driver(const char *filename); + +/** * @} */