get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45419,
    "url": "https://patches.dpdk.org/api/patches/45419/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1537971540-31443-1-git-send-email-jananeex.m.parthasarathy@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": "<1537971540-31443-1-git-send-email-jananeex.m.parthasarathy@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1537971540-31443-1-git-send-email-jananeex.m.parthasarathy@intel.com",
    "date": "2018-09-26T14:19:00",
    "name": "test: reduce test duration for efd autotest",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "86e81b9f325be1823a426d129a8b82ff59066fee",
    "submitter": {
        "id": 1024,
        "url": "https://patches.dpdk.org/api/people/1024/?format=api",
        "name": "Jananee Parthasarathy",
        "email": "jananeex.m.parthasarathy@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/1537971540-31443-1-git-send-email-jananeex.m.parthasarathy@intel.com/mbox/",
    "series": [
        {
            "id": 1521,
            "url": "https://patches.dpdk.org/api/series/1521/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1521",
            "date": "2018-09-26T14:19:00",
            "name": "test: reduce test duration for efd autotest",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/1521/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45419/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/45419/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 F23AA1B142;\n\tWed, 26 Sep 2018 16:19:29 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id D050B1B134\n\tfor <dev@dpdk.org>; Wed, 26 Sep 2018 16:19:27 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Sep 2018 07:19:26 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga004.fm.intel.com with ESMTP; 26 Sep 2018 07:19:25 -0700",
            "from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com\n\t[10.102.246.100])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw8QEJOFC002540; Wed, 26 Sep 2018 15:19:24 +0100",
            "from wgcvswdev001.ir.intel.com (localhost [127.0.0.1])\n\tby wgcvswdev001.ir.intel.com with ESMTP id w8QEJBwj031509;\n\tWed, 26 Sep 2018 15:19:11 +0100",
            "(from jmparthx@localhost)\n\tby wgcvswdev001.ir.intel.com with ? id w8QEJBxa031505;\n\tWed, 26 Sep 2018 15:19:11 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,306,1534834800\"; d=\"scan'208\";a=\"92069352\"",
        "From": "Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "byron.marohn@intel.com, pablo.de.lara.guarch@intel.com,\n\treshma.pattan@intel.com,\n\tJananee Parthasarathy <jananeex.m.parthasarathy@intel.com>",
        "Date": "Wed, 26 Sep 2018 15:19:00 +0100",
        "Message-Id": "<1537971540-31443-1-git-send-email-jananeex.m.parthasarathy@intel.com>",
        "X-Mailer": "git-send-email 1.7.12.2",
        "Subject": "[dpdk-dev] [PATCH] test: reduce test duration for efd autotest",
        "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": "Reduced test time for efd_autotest.\nKey length is updated, invoke times of random function is reduced.\n\nSigned-off-by: Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>\n---\n test/test/test_efd.c | 17 ++++++++---------\n 1 file changed, 8 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/test/test/test_efd.c b/test/test/test_efd.c\nindex ced091aab..893a09c03 100644\n--- a/test/test/test_efd.c\n+++ b/test/test/test_efd.c\n@@ -331,8 +331,9 @@ static int test_average_table_utilization(void)\n {\n \tstruct rte_efd_table *handle = NULL;\n \tuint32_t num_rules_in = TABLE_SIZE;\n-\tuint8_t simple_key[EFD_TEST_KEY_LEN];\n-\tunsigned int i, j;\n+\tuint8_t simple_key;\n+\tunsigned int j;\n+\tefd_value_t val;\n \tunsigned int added_keys, average_keys_added = 0;\n \n \tprintf(\"Evaluating table utilization and correctness, please wait\\n\");\n@@ -340,7 +341,7 @@ static int test_average_table_utilization(void)\n \n \tfor (j = 0; j < ITERATIONS; j++) {\n \t\thandle = rte_efd_create(\"test_efd\", num_rules_in,\n-\t\t\t\tEFD_TEST_KEY_LEN, efd_get_all_sockets_bitmask(),\n+\t\t\t\tsizeof(uint8_t), efd_get_all_sockets_bitmask(),\n \t\t\t\ttest_socket_id);\n \t\tif (handle == NULL) {\n \t\t\tprintf(\"efd table creation failed\\n\");\n@@ -350,18 +351,16 @@ static int test_average_table_utilization(void)\n \t\tunsigned int succeeded = 0;\n \t\tunsigned int lost_keys = 0;\n \n+\t\tval = mrand48() & VALUE_BITMASK;\n \t\t/* Add random entries until key cannot be added */\n \t\tfor (added_keys = 0; added_keys < num_rules_in; added_keys++) {\n \n-\t\t\tfor (i = 0; i < EFD_TEST_KEY_LEN; i++)\n-\t\t\t\tsimple_key[i] = rte_rand() & 0xFF;\n+\t\t\tsimple_key = rte_rand() & 0xFF;\n \n-\t\t\tefd_value_t val = simple_key[0];\n-\n-\t\t\tif (rte_efd_update(handle, test_socket_id, simple_key,\n+\t\t\tif (rte_efd_update(handle, test_socket_id, &simple_key,\n \t\t\t\t\t\tval))\n \t\t\t\tbreak; /* continue;*/\n-\t\t\tif (rte_efd_lookup(handle, test_socket_id, simple_key)\n+\t\t\tif (rte_efd_lookup(handle, test_socket_id, &simple_key)\n \t\t\t\t\t!= val)\n \t\t\t\tlost_keys++;\n \t\t\telse\n",
    "prefixes": []
}