get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35155,
    "url": "http://patches.dpdk.org/api/patches/35155/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/B5748614-2B5F-402D-9A09-1C0781109000@mellanox.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": "<B5748614-2B5F-402D-9A09-1C0781109000@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/B5748614-2B5F-402D-9A09-1C0781109000@mellanox.com",
    "date": "2018-02-13T22:45:55",
    "name": "[dpdk-dev] Accessing 2nd cacheline in rte_pktmbuf_prefree_seg()",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "56d940616436e6628c3851cf583a1e87bc3b6fe9",
    "submitter": {
        "id": 636,
        "url": "http://patches.dpdk.org/api/people/636/?format=api",
        "name": "Yongseok Koh",
        "email": "yskoh@mellanox.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/B5748614-2B5F-402D-9A09-1C0781109000@mellanox.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35155/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/35155/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 0C70F1B369;\n\tTue, 13 Feb 2018 23:45:58 +0100 (CET)",
            "from EUR01-VE1-obe.outbound.protection.outlook.com\n\t(mail-ve1eur01on0074.outbound.protection.outlook.com [104.47.1.74])\n\tby dpdk.org (Postfix) with ESMTP id D5E841B367\n\tfor <dev@dpdk.org>; Tue, 13 Feb 2018 23:45:56 +0100 (CET)",
            "from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by\n\tVI1PR0501MB2863.eurprd05.prod.outlook.com (10.172.12.8) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.485.10; Tue, 13 Feb 2018 22:45:55 +0000",
            "from VI1PR0501MB2045.eurprd05.prod.outlook.com\n\t([fe80::5ccf:86b:106c:a93a]) by\n\tVI1PR0501MB2045.eurprd05.prod.outlook.com\n\t([fe80::5ccf:86b:106c:a93a%14]) with mapi id 15.20.0485.017;\n\tTue, 13 Feb 2018 22:45:55 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n\ts=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=GGcDugq1Rec/Bi1uHReILGBSmG7mYAiRf1ZO8Nzhkr4=;\n\tb=dwS2n0G2/M0LJkRXbQFL16FLXhmgcRcLTMKju0lXsu0Zp1ZxdlKlr7gU6qXyG2Xgq77kpLJQoCNuhrIMHgHg9bC46axyhhiPL3JI7gN+D1Ps0rrKrU1HVDhLtpD7TgcEl6RjQWqHgptRDkOeZsPcLN0rmIr/iv0R+g3zBoXE88g=",
        "From": "Yongseok Koh <yskoh@mellanox.com>",
        "To": "Olivier Matz <olivier.matz@6wind.com>",
        "CC": "\"dev@dpdk.org\" <dev@dpdk.org>",
        "Thread-Topic": "Accessing 2nd cacheline in rte_pktmbuf_prefree_seg()",
        "Thread-Index": "AQHTpRxoSpjpp7VOiUGxw51sLWTbeQ==",
        "Date": "Tue, 13 Feb 2018 22:45:55 +0000",
        "Message-ID": "<B5748614-2B5F-402D-9A09-1C0781109000@mellanox.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=yskoh@mellanox.com; ",
        "x-originating-ip": "[209.116.155.178]",
        "x-ms-publictraffictype": "Email",
        "x-microsoft-exchange-diagnostics": "1; VI1PR0501MB2863;\n\t7:BJDuecfCSu5pSw1I57nCzxseBaGJPQwBXVGnrzDN2BJZ6P19llcWDWV06R3tY0lF/HU3xfaOcQ2PYKZWq3qf4PcyelYDAvaK+LXX1tlt3ddzNScQF2IckzE9DSMhLj0OJvSfIJkJKJHsrHvqfvKJidYGDS6/5ThPd77QZoCyfUlrLuqaXycC/FmOlfhwHJ9DQOeta4D8qDVGU6qY81De/KjtEwrY37scNrXIj0ZSpG6U/5Pf0QOJsCZ3OtSE24ya",
        "x-ms-exchange-antispam-srfa-diagnostics": "SSOS;",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-ms-office365-filtering-correlation-id": "7d6a6c96-943f-4ee6-d0ac-08d573338b27",
        "x-microsoft-antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);\n\tSRVR:VI1PR0501MB2863; ",
        "x-ms-traffictypediagnostic": "VI1PR0501MB2863:",
        "x-microsoft-antispam-prvs": "<VI1PR0501MB28632D2B02373EFD7B285947C3F60@VI1PR0501MB2863.eurprd05.prod.outlook.com>",
        "x-exchange-antispam-report-test": "UriScan:;",
        "x-exchange-antispam-report-cfa-test": "BCL:0; PCL:0;\n\tRULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231101)(944501161)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);\n\tSRVR:VI1PR0501MB2863; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2863; ",
        "x-forefront-prvs": "0582641F53",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(396003)(39860400002)(376002)(366004)(39380400002)(346002)(189003)(199004)(501624003)(8936002)(6436002)(81156014)(4326008)(81166006)(25786009)(8676002)(33656002)(6486002)(106356001)(6512007)(83716003)(305945005)(105586002)(68736007)(14454004)(53936002)(82746002)(3280700002)(478600001)(3660700001)(97736004)(5660300001)(6916009)(99286004)(316002)(36756003)(6506007)(2900100001)(86362001)(2906002)(5250100002)(102836004)(66066001)(6116002)(186003)(3846002)(26005)(7736002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2863;\n\tH:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ",
        "received-spf": "None (protection.outlook.com: mellanox.com does not designate\n\tpermitted sender hosts)",
        "x-microsoft-antispam-message-info": "w74zvREXMddAZbpue0jzK9jE9DtmGrkhjvCbf62FVvRgEiBwpoBg2eflJPIYaow9VOGC73hRqKGaUuEKxZ0lBg==",
        "spamdiagnosticoutput": "1:99",
        "spamdiagnosticmetadata": "NSPM",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-ID": "<911A85F8BE1088469C9366C2D5C92F22@eurprd05.prod.outlook.com>",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "Mellanox.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "7d6a6c96-943f-4ee6-d0ac-08d573338b27",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "13 Feb 2018 22:45:55.7180\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR0501MB2863",
        "Subject": "[dpdk-dev] Accessing 2nd cacheline in rte_pktmbuf_prefree_seg()",
        "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://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": "<https://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": "Hi Olivier\n\nI'm wondering why rte_pktmbuf_prefree_seg() checks m->next instead of\nm->nb_segs? As 'next' is in the 2nd cacheline, checking nb_segs seems beneficial\nto the cases where almost mbufs have single segment.\n\nA customer reported high rate of cache misses in the code and I thought the\nfollowing patch could be helpful. I haven't had them try it yet but just wanted\nto hear from you.\n\nI'd appreciate if you can review this idea.\n\n\nThanks,\nYongseok",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 62740254d..96edbcb9e 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -1398,7 +1398,7 @@ rte_pktmbuf_prefree_seg(struct rte_mbuf *m)\n                if (RTE_MBUF_INDIRECT(m))\n                        rte_pktmbuf_detach(m);\n \n-               if (m->next != NULL) {\n+               if (m->nb_segs > 1) {\n                        m->next = NULL;\n                        m->nb_segs = 1;\n                }\n@@ -1410,7 +1410,7 @@ rte_pktmbuf_prefree_seg(struct rte_mbuf *m)\n                if (RTE_MBUF_INDIRECT(m))\n                        rte_pktmbuf_detach(m);\n \n-               if (m->next != NULL) {\n+               if (m->nb_segs > 1) {\n                        m->next = NULL;\n                        m->nb_segs = 1;\n                }\n",
    "prefixes": [
        "dpdk-dev"
    ]
}