get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2339,
    "url": "https://patches.dpdk.org/api/patches/2339/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421632414-10027-3-git-send-email-zhihong.wang@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": "<1421632414-10027-3-git-send-email-zhihong.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1421632414-10027-3-git-send-email-zhihong.wang@intel.com",
    "date": "2015-01-19T01:53:32",
    "name": "[dpdk-dev,2/4] app/test: Removed unnecessary test cases in test_memcpy.c",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "162567ba7113cc51f41a8bb5e2e24e6a223ad580",
    "submitter": {
        "id": 156,
        "url": "https://patches.dpdk.org/api/people/156/?format=api",
        "name": "Zhihong Wang",
        "email": "zhihong.wang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1421632414-10027-3-git-send-email-zhihong.wang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2339/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2339/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 78B5F5A8F;\n\tMon, 19 Jan 2015 02:53:51 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id C2979CF9\n\tfor <dev@dpdk.org>; Mon, 19 Jan 2015 02:53:47 +0100 (CET)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP; 18 Jan 2015 17:53:46 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 18 Jan 2015 17:47:15 -0800",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t0J1rhD7001277;\n\tMon, 19 Jan 2015 09:53:43 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t0J1rfF8010076; Mon, 19 Jan 2015 09:53:43 +0800",
            "(from zwang84@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0J1rfq8010072; \n\tMon, 19 Jan 2015 09:53:41 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.09,422,1418112000\"; d=\"scan'208\";a=\"514089086\"",
        "From": "zhihong.wang@intel.com",
        "To": "dev@dpdk.org",
        "Date": "Mon, 19 Jan 2015 09:53:32 +0800",
        "Message-Id": "<1421632414-10027-3-git-send-email-zhihong.wang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1421632414-10027-1-git-send-email-zhihong.wang@intel.com>",
        "References": "<1421632414-10027-1-git-send-email-zhihong.wang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/4] app/test: Removed unnecessary test cases in\n\ttest_memcpy.c",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Removed unnecessary test cases for base move functions since the function \"func_test\" covers them all.\n\nSigned-off-by: Zhihong Wang <zhihong.wang@intel.com>\n---\n app/test/test_memcpy.c | 52 +-------------------------------------------------\n 1 file changed, 1 insertion(+), 51 deletions(-)",
    "diff": "diff --git a/app/test/test_memcpy.c b/app/test/test_memcpy.c\nindex 56b8e1e..b2bb4e0 100644\n--- a/app/test/test_memcpy.c\n+++ b/app/test/test_memcpy.c\n@@ -78,56 +78,9 @@ static size_t buf_sizes[TEST_VALUE_RANGE];\n #define TEST_BATCH_SIZE         100\n \n /* Data is aligned on this many bytes (power of 2) */\n-#define ALIGNMENT_UNIT          16\n+#define ALIGNMENT_UNIT          32\n \n \n-\n-/* Structure with base memcpy func pointer, and number of bytes it copies */\n-struct base_memcpy_func {\n-\tvoid (*func)(uint8_t *dst, const uint8_t *src);\n-\tunsigned size;\n-};\n-\n-/* To create base_memcpy_func structure entries */\n-#define BASE_FUNC(n) {rte_mov##n, n}\n-\n-/* Max number of bytes that can be copies with a \"base\" memcpy functions */\n-#define MAX_BASE_FUNC_SIZE 256\n-\n-/*\n- * Test the \"base\" memcpy functions, that a copy fixed number of bytes.\n- */\n-static int\n-base_func_test(void)\n-{\n-\tconst struct base_memcpy_func base_memcpy_funcs[6] = {\n-\t\tBASE_FUNC(16),\n-\t\tBASE_FUNC(32),\n-\t\tBASE_FUNC(48),\n-\t\tBASE_FUNC(64),\n-\t\tBASE_FUNC(128),\n-\t\tBASE_FUNC(256),\n-\t};\n-\tunsigned i, j;\n-\tunsigned num_funcs = sizeof(base_memcpy_funcs) / sizeof(base_memcpy_funcs[0]);\n-\tuint8_t dst[MAX_BASE_FUNC_SIZE];\n-\tuint8_t src[MAX_BASE_FUNC_SIZE];\n-\n-\tfor (i = 0; i < num_funcs; i++) {\n-\t\tunsigned size = base_memcpy_funcs[i].size;\n-\t\tfor (j = 0; j < size; j++) {\n-\t\t\tdst[j] = 0;\n-\t\t\tsrc[j] = (uint8_t) rte_rand();\n-\t\t}\n-\t\tbase_memcpy_funcs[i].func(dst, src);\n-\t\tfor (j = 0; j < size; j++)\n-\t\t\tif (dst[j] != src[j])\n-\t\t\t\treturn -1;\n-\t}\n-\n-\treturn 0;\n-}\n-\n /*\n  * Create two buffers, and initialise one with random values. These are copied\n  * to the second buffer and then compared to see if the copy was successful.\n@@ -218,9 +171,6 @@ test_memcpy(void)\n \tret = func_test();\n \tif (ret != 0)\n \t\treturn -1;\n-\tret = base_func_test();\n-\tif (ret != 0)\n-\t\treturn -1;\n \treturn 0;\n }\n \n",
    "prefixes": [
        "dpdk-dev",
        "2/4"
    ]
}