Show a patch.

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

{
    "id": 74542,
    "url": "https://patches.dpdk.org/api/patches/74542/",
    "web_url": "https://patches.dpdk.org/patch/74542/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200721095140.719297-4-bruce.richardson@intel.com>",
    "date": "2020-07-21T09:51:23",
    "name": "[20.11,03/20] app/test: change rawdev autotest to run selftest on all devs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "bf05d59176c66b8ecf9e1c4ca2cb4f4fa024fd72",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/patch/74542/mbox/",
    "series": [
        {
            "id": 11200,
            "url": "https://patches.dpdk.org/api/series/11200/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11200",
            "date": "2020-07-21T09:51:20",
            "name": "raw/ioat: enhancements and new hardware support",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11200/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74542/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/74542/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9688\"; a=\"151440752\"",
            "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"151440752\"",
            "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"488023683\""
        ],
        "IronPort-SDR": [
            "\n r6RaznEtgAUMoWuVDejTEmWubfT7FLoghxlLq9tR56WbA9EwKOtrbf8z8/F+Lo9El2ajbyiLtt\n h0H3206DfATg==",
            "\n Z9g8QCGj7OKbHu4xMo6q/jlARR/WE1mJxmVKQ7DxeBgHfVpoK/tuFf+lbe1F2RERSf8zqYDPRT\n MR4RZLmxImJQ=="
        ],
        "X-Amp-File-Uploaded": "False",
        "Precedence": "list",
        "X-Mailman-Version": "2.1.15",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "MIME-Version": "1.0",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<20200721095140.719297-1-bruce.richardson@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 20.11 03/20] app/test: change rawdev autotest to\n\trun selftest on all devs",
        "Sender": "\"dev\" <dev-bounces@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 1FF5DA0526;\n\tTue, 21 Jul 2020 11:52:24 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 09F431C025;\n\tTue, 21 Jul 2020 11:52:15 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 548871BFFE\n for <dev@dpdk.org>; Tue, 21 Jul 2020 11:52:14 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jul 2020 02:52:13 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.222.36])\n by fmsmga005.fm.intel.com with ESMTP; 21 Jul 2020 02:52:11 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailer": "git-send-email 2.25.1",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-ExtLoop1": "1",
        "Date": "Tue, 21 Jul 2020 10:51:23 +0100",
        "Content-Transfer-Encoding": "8bit",
        "To": "dev@dpdk.org",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "In-Reply-To": "<20200721095140.719297-1-bruce.richardson@intel.com>",
        "Cc": "cheng1.jiang@intel.com, patrick.fu@intel.com, kevin.laatz@intel.com,\n Bruce Richardson <bruce.richardson@intel.com>, hemant.agrawal@nxp.com,\n nipun.gupta@nxp.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200721095140.719297-4-bruce.richardson@intel.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Rather than having each rawdev provide its own autotest command, we can\ninstead just use the generic rawdev_autotest to test any and all available\nrawdevs.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nCc: hemant.agrawal@nxp.com\nCc: nipun.gupta@nxp.com\n---\n app/test/test_rawdev.c | 27 +++++++++++++++++++++++++--\n 1 file changed, 25 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test/test_rawdev.c b/app/test/test_rawdev.c\nindex d8d9595be..a62f719d6 100644\n--- a/app/test/test_rawdev.c\n+++ b/app/test/test_rawdev.c\n@@ -14,14 +14,37 @@\n static int\n test_rawdev_selftest_impl(const char *pmd, const char *opts)\n {\n+\tint ret;\n+\n+\tprintf(\"\\n### Test rawdev infrastructure using skeleton driver\\n\");\n \trte_vdev_init(pmd, opts);\n-\treturn rte_rawdev_selftest(rte_rawdev_get_dev_id(pmd));\n+\tret = rte_rawdev_selftest(rte_rawdev_get_dev_id(pmd));\n+\trte_vdev_uninit(pmd);\n+\treturn ret;\n }\n \n static int\n test_rawdev_selftest_skeleton(void)\n {\n-\treturn test_rawdev_selftest_impl(\"rawdev_skeleton\", \"\");\n+\tconst int count = rte_rawdev_count();\n+\tint ret = 0;\n+\tint i;\n+\n+\t/* basic sanity on rawdev infrastructure */\n+\tif (test_rawdev_selftest_impl(\"rawdev_skeleton\", \"\") < 0)\n+\t\treturn -1;\n+\n+\t/* now run self-test on all rawdevs */\n+\tif (count > 0)\n+\t\tprintf(\"\\n### Run selftest on each available rawdev\\n\");\n+\tfor (i = 0; i < count; i++) {\n+\t\tint result = rte_rawdev_selftest(i);\n+\t\tprintf(\"Rawdev %u selftest: %s\\n\", i,\n+\t\t\t\tresult == 0 ? \"Passed\" : \"Failed\");\n+\t\tret |=  result;\n+\t}\n+\n+\treturn ret;\n }\n \n REGISTER_TEST_COMMAND(rawdev_autotest, test_rawdev_selftest_skeleton);\n",
    "prefixes": [
        "20.11",
        "03/20"
    ]
}