get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/62390/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 62390,
    "url": "http://patches.dpdk.org/api/patches/62390/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/9bfc4c6d563f29ca4ef5cca80e650928e51e5514.1572889140.git.anatoly.burakov@intel.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": "<9bfc4c6d563f29ca4ef5cca80e650928e51e5514.1572889140.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/9bfc4c6d563f29ca4ef5cca80e650928e51e5514.1572889140.git.anatoly.burakov@intel.com",
    "date": "2019-11-04T17:41:33",
    "name": "vfio: fix getting default container",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e87187baec740617b62863706a2234e160f06870",
    "submitter": {
        "id": 4,
        "url": "http://patches.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.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/9bfc4c6d563f29ca4ef5cca80e650928e51e5514.1572889140.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 7226,
            "url": "http://patches.dpdk.org/api/series/7226/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7226",
            "date": "2019-11-04T17:41:33",
            "name": "vfio: fix getting default container",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/7226/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/62390/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/62390/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 77695A0352;\n\tMon,  4 Nov 2019 18:41:37 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BC86514EC;\n\tMon,  4 Nov 2019 18:41:36 +0100 (CET)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id BC6782BF9;\n Mon,  4 Nov 2019 18:41:34 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 04 Nov 2019 09:41:33 -0800",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.223.151])\n by orsmga008.jf.intel.com with ESMTP; 04 Nov 2019 09:41:31 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.68,267,1569308400\"; d=\"scan'208\";a=\"195523472\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "damarion@cisco.com, thomas@monjalon.net, david.marchand@redhat.com,\n dariuszx.stojaczyk@intel.com, stable@dpdk.org",
        "Date": "Mon,  4 Nov 2019 17:41:33 +0000",
        "Message-Id": "\n <9bfc4c6d563f29ca4ef5cca80e650928e51e5514.1572889140.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH] vfio: fix getting default container",
        "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": "When requesting DMA mapping to default container, we are meant to\nsupply the RTE_VFIO_DEFAULT_CONTAINER_FD value, however this is\nnot handled correctly by get_vfio_cfg_by_container_fd(), because\nit only looks at actual fd values and does not check for this\nspecial case.\n\nFix it to return default container if the fd requested is the\nspecial RTE_VFIO_DEFAULT_CONTAINER_FD value.\n\nFixes: 4f5519ed8349 (\"vfio: cleanup getting group fd\")\nCc: dariuszx.stojaczyk@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_eal/linux/eal/eal_vfio.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/linux/eal/eal_vfio.c b/lib/librte_eal/linux/eal/eal_vfio.c\nindex d9541b1220..d7887388f9 100644\n--- a/lib/librte_eal/linux/eal/eal_vfio.c\n+++ b/lib/librte_eal/linux/eal/eal_vfio.c\n@@ -412,6 +412,9 @@ get_vfio_cfg_by_container_fd(int container_fd)\n {\n \tint i;\n \n+\tif (container_fd == RTE_VFIO_DEFAULT_CONTAINER_FD)\n+\t\treturn default_vfio_cfg;\n+\n \tfor (i = 0; i < VFIO_MAX_CONTAINERS; i++) {\n \t\tif (vfio_cfgs[i].vfio_container_fd == container_fd)\n \t\t\treturn &vfio_cfgs[i];\n",
    "prefixes": []
}