From patchwork Mon Oct 31 18:58:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 80261 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp268661qge; Mon, 31 Oct 2016 12:00:44 -0700 (PDT) X-Received: by 10.237.58.38 with SMTP id n35mr26846316qte.45.1477940444430; Mon, 31 Oct 2016 12:00:44 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s39si8892266qte.140.2016.10.31.12.00.43; Mon, 31 Oct 2016 12:00:44 -0700 (PDT) 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 D03B061740; Mon, 31 Oct 2016 19:00:43 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 57EDD6178C; Mon, 31 Oct 2016 18:59:04 +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 5CEDA60CB6; Mon, 31 Oct 2016 18:58:55 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id D29136096F for ; Mon, 31 Oct 2016 18:58:52 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id t196so24487581lff.3 for ; Mon, 31 Oct 2016 11:58:52 -0700 (PDT) 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=SVwj9PaST9SFZL8JttqZ1pZDeZVPs9HcABDWAZHpWjI=; b=dsp80c21a2STWzD/Oj7nCTNXY+zmxcYIAL4f+sPTcqxgEMPKrmvGTXyrWGRgiL3YHg y8c7p+nw/ZClULY50Y+V+eYLQ/9CwaCflxBMOd+ea9LOX1HYxkV/OO0jhAJzG3nTm2A8 lyU5mv+zJ+1SR5HjQ6ov3p/BVzGGc10Y0tNUsqi2sULb5FovbbHO+Xr8EDO8DnjUUuvc LC9lMjUyM89hwg1rGPTAIPfiENji3E10D/Se2o0dDSjcp0BymMWVC8Pph7Bs7IorZQji yKFeIoij8ITU9fHlTrjUK4Wp2N9A5y+QYnIViWLTfnVkxEZsWk49dq4yScZWWdLi3ebW Xu6A== X-Gm-Message-State: ABUngvfZZFJ8NI4Dt9Zj+U3pfDIA90dDMpXClMYLF52y+XaiQPcE09C7o0/tK9PxLqHxezxseww= X-Received: by 10.25.199.76 with SMTP id x73mr18399572lff.162.1477940331606; Mon, 31 Oct 2016 11:58:51 -0700 (PDT) Received: from localhost.localdomain (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id b29sm4792417lfh.8.2016.10.31.11.58.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Oct 2016 11:58:50 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, bill.fischofer@linaro.org, brian.brooks@linaro.org, lng-odp@lists.linaro.org Date: Mon, 31 Oct 2016 19:58:41 +0100 Message-Id: <1477940323-7278-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477940323-7278-1-git-send-email-christophe.milard@linaro.org> References: <1477940323-7278-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 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" Signed-off-by: Christophe Milard Function added on the north API to load drivers. --- 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); + +/** * @} */