Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/63846/?format=api
http://patches.dpdk.org/api/patches/63846/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191213141322.32730-3-maxime.coquelin@redhat.com/", "project": { "id": 1, "url": "http://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": "<20191213141322.32730-3-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191213141322.32730-3-maxime.coquelin@redhat.com", "date": "2019-12-13T14:13:20", "name": "[2/4] eal: allow getting memory segment FD with external memory", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "24747e59d2c54e013b5111361e2669d3916679ca", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191213141322.32730-3-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 7824, "url": "http://patches.dpdk.org/api/series/7824/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7824", "date": "2019-12-13T14:13:18", "name": "Add external contiguous memory support to Virtio-user", "version": 1, "mbox": "http://patches.dpdk.org/series/7824/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/63846/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/63846/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8A6EBA04F1;\n\tFri, 13 Dec 2019 15:13:55 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DEF5C1BF9D;\n\tFri, 13 Dec 2019 15:13:41 +0100 (CET)", "from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com\n [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 252971BF9A\n for <dev@dpdk.org>; Fri, 13 Dec 2019 15:13:40 +0100 (CET)", "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-392-zzyw3BAhM4-jFnZbk5Tyng-1; Fri, 13 Dec 2019 09:13:36 -0500", "from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com\n [10.5.11.12])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 50620107B272;\n Fri, 13 Dec 2019 14:13:35 +0000 (UTC)", "from localhost.localdomain (ovpn-112-19.ams2.redhat.com\n [10.36.112.19])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 7C6DA60C05;\n Fri, 13 Dec 2019 14:13:32 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1576246419;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=VOzRomDJ/d2lg7k+EKYhCm+YSUUvwmsIsPy2lXBFQZI=;\n b=ClsjPxRjiA3DaMGRYcvv9g3n8FWi6A5lSU8YNIig8b92s/y11jARG4yMdPoRPcDGSvP6Ow\n eovAkYaTos6xqYImuurDB7wZxFZ6iN7aeJzJR40urDzA6T3s31Oy4YJwVi4l/ma4YrDGn1\n U4diN6JBZzJPCkd+J1WMqq3dv3T8BZc=", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com,\n anatoly.burakov@intel.com", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>", "Date": "Fri, 13 Dec 2019 15:13:20 +0100", "Message-Id": "<20191213141322.32730-3-maxime.coquelin@redhat.com>", "In-Reply-To": "<20191213141322.32730-1-maxime.coquelin@redhat.com>", "References": "<20191213141322.32730-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.12", "X-MC-Unique": "zzyw3BAhM4-jFnZbk5Tyng-1", "X-Mimecast-Spam-Score": "0", "Content-Type": "text/plain; charset=US-ASCII", "Content-Transfer-Encoding": "quoted-printable", "Subject": "[dpdk-dev] [PATCH 2/4] eal: allow getting memory segment FD with\n\texternal memory", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Now that it is possible to associate a file descriptor when\nregistering external and contiguous memory, let's allow it.\n\nIf no FD is available for the memory segment, ENOENT error\nis returned.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n lib/librte_eal/common/eal_common_memory.c | 12 ------------\n 1 file changed, 12 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c\nindex 7a4b371828..cc660f5b85 100644\n--- a/lib/librte_eal/common/eal_common_memory.c\n+++ b/lib/librte_eal/common/eal_common_memory.c\n@@ -691,12 +691,6 @@ rte_memseg_get_fd_thread_unsafe(const struct rte_memseg *ms)\n \t\treturn -1;\n \t}\n \n-\t/* segment fd API is not supported for external segments */\n-\tif (msl->external) {\n-\t\trte_errno = ENOTSUP;\n-\t\treturn -1;\n-\t}\n-\n \tret = eal_memalloc_get_seg_fd(msl_idx, seg_idx);\n \tif (ret < 0) {\n \t\trte_errno = -ret;\n@@ -746,12 +740,6 @@ rte_memseg_get_fd_offset_thread_unsafe(const struct rte_memseg *ms,\n \t\treturn -1;\n \t}\n \n-\t/* segment fd API is not supported for external segments */\n-\tif (msl->external) {\n-\t\trte_errno = ENOTSUP;\n-\t\treturn -1;\n-\t}\n-\n \tret = eal_memalloc_get_seg_fd_offset(msl_idx, seg_idx, offset);\n \tif (ret < 0) {\n \t\trte_errno = -ret;\n", "prefixes": [ "2/4" ] }{ "id": 63846, "url": "