From patchwork Thu Dec 10 18:58:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 58237 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp683571lbb; Thu, 10 Dec 2015 10:59:11 -0800 (PST) X-Received: by 10.31.108.90 with SMTP id h87mr11619122vkc.24.1449773951224; Thu, 10 Dec 2015 10:59:11 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d191si11487425vka.165.2015.12.10.10.59.10; Thu, 10 Dec 2015 10:59:11 -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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 7A5C661D71; Thu, 10 Dec 2015 18:59:10 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED 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 D5B5861D49; Thu, 10 Dec 2015 18:59:05 +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 325F961D4C; Thu, 10 Dec 2015 18:59:04 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by lists.linaro.org (Postfix) with ESMTPS id 30B5D61D13 for ; Thu, 10 Dec 2015 18:59:03 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id w144so36713654wmw.1 for ; Thu, 10 Dec 2015 10:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=c1Nij9Xj/3arISOo+7oj+0CnSR9dp+Gjlyc8mhqmd9c=; b=PWewwGeV5UxWJXh2sU6FrDkOafZYbu0/bs9CaJsrfjCDL6wmOgIyPoiCa5zUvF0bDj 3F/BiZZRALq5VjxMlM6Ib6R1CErYUdQyR2JG+s/Url04u0FDgs/MQiMxHMpsWV57ChfD aYqnHCk6Ivyepc+6sB974aLeZZor6zylmRMOJE4pcV9MaavA5hsQaAl748lTkDNFiG8F NjHkHp3amtOhcOZ2FOQskakbcHsbHhJKtTbuODhLj1AcDHrG9AnjypLEIZu+WW08crk8 TpQKQBba+l130Tprs1wOANhZ29XCudUJ6yroh0jUTJJ9twqkFa+vCMyjG+a+kTkDOMrO SvEg== 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; bh=c1Nij9Xj/3arISOo+7oj+0CnSR9dp+Gjlyc8mhqmd9c=; b=ArJFTa2HJMkWKY8p5K4Tho7aArng+h34dQL7JtSVsYQoT0DmHdvzsETscxLUWjMca7 Zk2kwVClb5Zo0hjloUDQvhXv9IWlq4r2kl7O5jDucPdCVxuyhgZPBvqBrmqWe1EVWUyg DoYO1wH87szukze4V2nCfJZkjncGrDyGkMhwDLgjTLA9/YwgxXGmKIa2tYJeW9fo/h/H Sz0wWakQJRxtXMujrrExDeP/41gLwovI4XdEsYE/OcUvaKujepGZck41rW5icGmp2Nqs b6N+tsorqnCe04vHCxT98VVq6WLhOWqpnaHjcq7ImT1AD78/uwJTcX5GaleoH47Klo8R saew== X-Gm-Message-State: ALoCoQkRm7Ae0+0DtQNrnQEODCTQen9phu2J86TA199X8m45Vx6VQhpp5tL0XVRkGCLQCVRRF/N9K6zEi1HoIZPWrq95i0KIog== X-Received: by 10.28.45.216 with SMTP id t207mr749490wmt.89.1449773942476; Thu, 10 Dec 2015 10:59:02 -0800 (PST) Received: from localhost.localdomain ([195.11.233.227]) by smtp.googlemail.com with ESMTPSA id az6sm13615239wjc.25.2015.12.10.10.59.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Dec 2015 10:59:01 -0800 (PST) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Thu, 10 Dec 2015 18:58:49 +0000 Message-Id: <1449773929-15257-1-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: petri.savolainen@nokia.com Subject: [lng-odp] [API-NEXT PATCH v2] api: init: allow implementation to use private ways for its own configuration 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" This could help the existing configuration methods to be used if the application prefers that. The platform_params should always supersede that though. Signed-off-by: Zoltan Kiss Reviewed-by: Bill Fischofer --- v2: improve wording about superseding include/odp/api/init.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/odp/api/init.h b/include/odp/api/init.h index 737ff6d..4ac5216 100644 --- a/include/odp/api/init.h +++ b/include/odp/api/init.h @@ -141,6 +141,10 @@ typedef struct odp_platform_init_t { * * This function must be called once before calling any other ODP API * functions. + * The underlying implementation may have another way to get configuration + * related to platform_params (e.g. environmental variable, configuration + * file), but if the application passes platform_params, it should always + * supersede any other configuration data the platform has. * * @param params Those parameters that are interpreted by the ODP API. * Use NULL to set all parameters to their defaults.