Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/49233/?format=api
https://patches.dpdk.org/api/patches/49233/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/d5cb333bee4818f3cbb031a711a9eec2ae85c801.1545391716.git.anatoly.burakov@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<d5cb333bee4818f3cbb031a711a9eec2ae85c801.1545391716.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/d5cb333bee4818f3cbb031a711a9eec2ae85c801.1545391716.git.anatoly.burakov@intel.com", "date": "2018-12-21T11:29:02", "name": "[v2,3/4] test/extmem: check if memseg list is external", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9956c75ca71cdb75f31b7fc514a5f88902a3810a", "submitter": { "id": 4, "url": "https://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/d5cb333bee4818f3cbb031a711a9eec2ae85c801.1545391716.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 2920, "url": "https://patches.dpdk.org/api/series/2920/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=2920", "date": "2018-12-21T11:29:01", "name": null, "version": 2, "mbox": "https://patches.dpdk.org/series/2920/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/49233/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/49233/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D3BF21BDD6;\n\tFri, 21 Dec 2018 12:29:12 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id E67C11BD7F\n\tfor <dev@dpdk.org>; Fri, 21 Dec 2018 12:29:07 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Dec 2018 03:29:06 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga003.jf.intel.com with ESMTP; 21 Dec 2018 03:29:05 -0800", "from sivswdev05.ir.intel.com (sivswdev05.ir.intel.com\n\t[10.243.17.64])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\twBLBT59Y023514; Fri, 21 Dec 2018 11:29:05 GMT", "from sivswdev05.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev05.ir.intel.com with ESMTP id wBLBT4cK002063;\n\tFri, 21 Dec 2018 11:29:04 GMT", "(from aburakov@localhost)\n\tby sivswdev05.ir.intel.com with LOCAL id wBLBT4Me002059;\n\tFri, 21 Dec 2018 11:29:04 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.56,381,1539673200\"; d=\"scan'208\";a=\"112372699\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, stephen@networkplumber.org", "Date": "Fri, 21 Dec 2018 11:29:02 +0000", "Message-Id": "<d5cb333bee4818f3cbb031a711a9eec2ae85c801.1545391716.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545391716.git.anatoly.burakov@intel.com>", "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545390524.git.anatoly.burakov@intel.com>" ], "References": [ "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545391716.git.anatoly.burakov@intel.com>", "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545390524.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH v2 3/4] test/extmem: check if memseg list is\n\texternal", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Extend the extmem autotest to check whether the memseg lists for\nexternally allocated memory are always marked as external.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n test/test/test_external_mem.c | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)", "diff": "diff --git a/test/test/test_external_mem.c b/test/test/test_external_mem.c\nindex 06e6ccc1d..b877f8e2e 100644\n--- a/test/test/test_external_mem.c\n+++ b/test/test/test_external_mem.c\n@@ -13,6 +13,7 @@\n #include <rte_common.h>\n #include <rte_debug.h>\n #include <rte_eal.h>\n+#include <rte_eal_memconfig.h>\n #include <rte_errno.h>\n #include <rte_malloc.h>\n #include <rte_ring.h>\n@@ -29,11 +30,19 @@ check_mem(void *addr, rte_iova_t *iova, size_t pgsz, int n_pages)\n \n \t/* check that we can get this memory from EAL now */\n \tfor (i = 0; i < n_pages; i++) {\n+\t\tconst struct rte_memseg_list *msl;\n \t\tconst struct rte_memseg *ms;\n \t\tvoid *cur = RTE_PTR_ADD(addr, pgsz * i);\n \t\trte_iova_t expected_iova;\n \n-\t\tms = rte_mem_virt2memseg(cur, NULL);\n+\t\tmsl = rte_mem_virt2memseg_list(cur);\n+\t\tif (!msl->external) {\n+\t\t\tprintf(\"%s():%i: Memseg list is not marked as external\\n\",\n+\t\t\t\t__func__, __LINE__);\n+\t\t\treturn -1;\n+\t\t}\n+\n+\t\tms = rte_mem_virt2memseg(cur, msl);\n \t\tif (ms == NULL) {\n \t\t\tprintf(\"%s():%i: Failed to retrieve memseg for external mem\\n\",\n \t\t\t\t__func__, __LINE__);\n", "prefixes": [ "v2", "3/4" ] }{ "id": 49233, "url": "