From patchwork Thu Apr 12 06:23:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 133186 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1364376ljb; Wed, 11 Apr 2018 23:25:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ujgbCzNeeA9ZG5NwAuWV4bw48uAX7Bws4Xg95XD1tCodva497n5ppFSsP2YAE0QcGWSrF X-Received: by 10.223.220.70 with SMTP id m6mr5191848wrj.244.1523514340743; Wed, 11 Apr 2018 23:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523514340; cv=none; d=google.com; s=arc-20160816; b=guHKhtZt2c4JxOFQKs7YbIf7ZM8APKMDUDdji/4obmUWhtGnZS//iXxafkoPIYhBL+ rXZC0cMNnz/rgFDH0GiZIEQAJwa28OIeAEMv28OEmvmS3QUkNXGIN3y7dOEZ9+iMu94v 3iiVL/IrjnwbCzWxVdzjbW4e6jNoVXLooHlREqD4NjTUpuiIlyzuakKrV0BSd2YQpUGP 18MNIE1Ly3wb34filwxHzQsAkFBi/u+n39v0QtKaAfl9xZQu11UYTJHYm15RAnqbO2Nt 7U1+SBIo8t6t8fRPO+WDeCRl80QeV2Caa3IbaPllB5pvDXy5+6nmRfFuXWYDekoLsGQq VRLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=V5adyxC0A9BffJpWgmNvdomntD2OzBjSjTZy1SV6a6k=; b=yX3TJfiv7j60qtfqp5yMLA2Tq+vcS/ZLNw+1U6YyE6vZPVGZCKLfANq4JA1xgN57kB QwIhpq5SpzGWM1biwn/KJz/++sdcXBbCXlKlEwWkTzyw+tpFGOoFualTC0IVgWioN+Wo F8+Ddt9K4YIe7RH0P2BpBUsY+/IeetM8szsrzHfrHtsvzuH7fBZj4dBoqDCGaTachbNt +gaPgsrWo0B3jGjfQr2sryHtreUzzs8Z3C2Gk/FXZfkJCqeAZk9qwbn6qR3KtyQqtVt0 yHw4w3nNjPq/tgfn8cbicBntLLRrEP/an2kdPTwfnyUquSaCiCC1rNQLU39PznlIsrKg zjog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=inMueu0v; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id r126si2110575wmd.116.2018.04.11.23.25.40; Wed, 11 Apr 2018 23:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=inMueu0v; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E3FC1BA86; Thu, 12 Apr 2018 08:25:39 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50074.outbound.protection.outlook.com [40.107.5.74]) by dpdk.org (Postfix) with ESMTP id DAFF91BA5A for ; Thu, 12 Apr 2018 08:25:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=V5adyxC0A9BffJpWgmNvdomntD2OzBjSjTZy1SV6a6k=; b=inMueu0v+/v8xX6+UVguL2ikke16XvGy43JEJqg8HmXTJs0j6mLM1D05MGBl0loZduU4fVCUq7Um50CHdTDxXWJ7VzgoqJfw8FPsls/5k7f62iXjSJXnjHXrox82pNWg+xKBbKAC0KXDCAGKLsqL4COq5lhD+m1UGdl0U4PWv64= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB3PR04MB0764.eurprd04.prod.outlook.com (2a01:111:e400:9440::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.10; Thu, 12 Apr 2018 06:25:35 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: anatoly.burakov@intel.com, thomas@monjalon.net Date: Thu, 12 Apr 2018 11:53:36 +0530 Message-Id: <1523514217-12580-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522828120-16100-1-git-send-email-hemant.agrawal@nxp.com> References: <1522828120-16100-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0045.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::31) To DB3PR04MB0764.eurprd04.prod.outlook.com (2a01:111:e400:9440::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB3PR04MB0764; X-Microsoft-Exchange-Diagnostics: 1; DB3PR04MB0764; 3:Psb5BkEvHoD0KJqyssz69UX25iPCYL1QVWbQSO7zFk3bcGTn+qKRb+wO6JNLqygEqhYJ4jJicWDkT0Q4wb/+2Y1g/D2qaBuSGvK2L7i4E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hSgy157Xth/APJyOnZ3h09/weZWWiudMZWPwfQntNynVzfH9c+mz8RW0Xzh45fQx+B9xWGDsAgnuhnKMkANK+zYvBi/iUN3RzdDe4PPhSHNaYY6VqmQP9vyvqi0tAR3XVUdh1/YbqgDs4fGXk+k5Y5DHAMRZmDqQFNBmyc0fmh1lSdTIzoAcfRLSH7Jyjsx4WkYmiT7LoRle9c9XDfTgFUYivliyE0bIVsIJfsumRAhBao; 4:oNSczku9lMKnsm+jSSY0eQsFSfoIOklKcRufoGrjekjTJS6R9CbpQZFXDW8IqQuKXCA6vyvi/h2zfS/OaGqY83EoZiYLnUQqj+dEKDrHz/ZlmgErVdjJDtosesFamsisXiAcbsYrlxHHjT3w8JFVRPm7prgZfBY+uo4y/DheUEKmTcXh30+wW5tPiHhEPvC4vn6zroYWG9L2w54Ns/hriYuHkZBpX7gofNp1/g6eqfblqW2Qhc1T+y3mlK7qT+9QrT/fiQS/Sh3RWQ1NGPzXWrZtI5eCcXcTx24lJLG/WNZ/NIZL7PR053rWJ/9fpMJm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:DB3PR04MB0764; BCL:0; PCL:0; RULEID:; SRVR:DB3PR04MB0764; X-Forefront-PRVS: 06400060E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(396003)(376002)(346002)(39380400002)(189003)(199004)(106356001)(5009440100003)(2361001)(2351001)(16586007)(316002)(8676002)(5660300001)(81156014)(81166006)(50226002)(305945005)(8936002)(105586002)(7736002)(53936002)(478600001)(36756003)(6512007)(4326008)(2906002)(25786009)(48376002)(6916009)(3846002)(68736007)(6486002)(6116002)(26005)(50466002)(186003)(97736004)(51416003)(6506007)(55236004)(52116002)(386003)(11346002)(47776003)(446003)(16526019)(956004)(59450400001)(76176011)(66066001)(2616005)(486006)(476003)(86362001)(44832011)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR04MB0764; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB3PR04MB0764; 23:PAUL5eP1RxK+4OMCo0GLjythjsq2Ja2GlPkAFC1IK?= Ej2H4M6JhxImS8xPk7azFmo4/hLzlN++G1sR30F5pHsZ/wF0wUbYzYsG2D7pB7fmqAwJ4+I/j/d8FxKd+PUNQ3vQ1Z2QpC6zoeRRHeKVCpgUs0k1uthNyqsYWXQheiWcJG2at7Jj6rQkmG0ZzHcf9oVkeYdVL+PF4nNe6sH2WEdeR3ocdSVNEZaqH0GlaJKXgZqel0IkzIN/g+3yNypW+iKB1+K07ZL//5yMXpgKidP4k/+fBCazo1Z13LdM4/h2XDUiy2MPZCZ6G51Wi7ExJI3HzuW4mUyQQILlHDTxJUiuR0gbuotnhb5idHvTULbbVCRayM/Zy1SZP3fINYw8QaDv0C9ow6jC8y4gOYVsZiFoUA3klhY2UeFRkXI4OUgth/X0lHpEydk9PypuiCt1imge5+CVlHwdl9fCrnJxuSuYJmdnWPUzxhI9e7Yk4aJYd4bqHzev935cUjqFdEhwNspXa3QH+2BTZmChjcF3pU8g+/shOYT7QFKU490saUuEdZDpu5y1APQvCczhiipAXzQqAmSjA1BoWtp7Cw75F3kX1IW6GlNYT3qRv0XVXNuBfALCLX0itIpXoXghFkxFArbzVGVspt9fF46b4Qw1yeilKP/l3dcU1SbyR+KQKWIlP44pnW60DWu/74SpL+R6UpB1jEO73JxJPPsR+1heDLPaHe6Ojbih0mthwwVlTHNLt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C3oarjyF6hCpAcjHkoSiUPB1C2SOOm4q8CwuNVSu7uxUpvexZkWmO8WNBwU9Eq0WPPeON5DZlHe/WkDoUAOexfM8sxu7z5xzcE14I+PXsWgW53mqYkUrdWKkBYM/5comcdIX2s059Rq809+q82TL9+uaRvFZnvcVas+BcRt0/9FjkkkSm5rPo39Ct9kHJsAp4aer1mc6Acsvi9rg==; 5:5iSo/5YdviT97rsT8c/i2d1d2irK+IqaaZ9OGewfYTCcK3Nh7MN3fAT2E5nLZE9ckF1y/F3YV4z0kZvtP++0Sg9WzdUe5XTp8ryVHlzbZtI+CHoq6A46e7Z3xiQG1Npna2aswYjz9Z/uGw/somP7H2iFeBc3cEKnJpsNcMUshAk=; 24:Lgwmbzb7HY/F2DyUpsj28VEtYUXiFg9aE7KfBvqE4cVwN3IbZAWkAKf2mUKUFI1AdC2d8f9WGRl1WKPbms89BlzKHmPD5Q2KeD+FXXACLUI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB3PR04MB0764; 7:X7ZfSFM92MZJ36kymVxpngOBBObQldtZpM7Dd0p+HD4wLkEhyHvHySY3LLLwmAuqVSEtuxYHadDw/k9xOxjBD01qgLYlS+QiFnjRw7Crjcu2U/nRmq40MKIKZZEwEzOhUkcnUrwJQHwoCsk2tsQcGCCyZxb3Zah97RlvXq0zrHiGJwfkM0prwdlAIhL3no9cn9Xr3lob8mhE+8GhTTjUmokUFNIl/n5IV+OpAvaSqsg6Zddj0QK5tM4miW28N+iP X-MS-Office365-Filtering-Correlation-Id: d75c95ba-693f-4402-2b50-08d5a03e3406 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2018 06:25:35.4811 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d75c95ba-693f-4402-2b50-08d5a03e3406 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR04MB0764 Subject: [dpdk-dev] [PATCH v6 1/2] doc: add vfio api support 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- doc/api/doxy-api-index.md | 3 ++- doc/api/doxy-api.conf | 1 + lib/librte_eal/common/include/rte_vfio.h | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md index 2f04619..d5ccbe8 100644 --- a/doc/api/doxy-api-index.md +++ b/doc/api/doxy-api-index.md @@ -52,7 +52,8 @@ The public API headers are grouped by topics: [bitrate] (@ref rte_bitrate.h), [latency] (@ref rte_latencystats.h), [devargs] (@ref rte_devargs.h), - [PCI] (@ref rte_pci.h) + [PCI] (@ref rte_pci.h), + [vfio] (@ref rte_vfio.h) - **device specific**: [softnic] (@ref rte_eth_softnic.h), diff --git a/doc/api/doxy-api.conf b/doc/api/doxy-api.conf index cda52fd..ad8bdcf 100644 --- a/doc/api/doxy-api.conf +++ b/doc/api/doxy-api.conf @@ -82,6 +82,7 @@ INPUT = doc/api/doxy-api-index.md \ FILE_PATTERNS = rte_*.h \ cmdline.h PREDEFINED = __DOXYGEN__ \ + VFIO_PRESENT \ __attribute__(x)= OPTIMIZE_OUTPUT_FOR_C = YES diff --git a/lib/librte_eal/common/include/rte_vfio.h b/lib/librte_eal/common/include/rte_vfio.h index d26ab01..f363cac 100644 --- a/lib/librte_eal/common/include/rte_vfio.h +++ b/lib/librte_eal/common/include/rte_vfio.h @@ -5,6 +5,11 @@ #ifndef _RTE_VFIO_H_ #define _RTE_VFIO_H_ +/** + * @file + * RTE VFIO. This library provides various VFIO related utility functions. + */ + /* * determine if VFIO is present on the system */