get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92391,
    "url": "http://patches.dpdk.org/api/patches/92391/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1619687943-50507-1-git-send-email-humin29@huawei.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": "<1619687943-50507-1-git-send-email-humin29@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1619687943-50507-1-git-send-email-humin29@huawei.com",
    "date": "2021-04-29T09:19:03",
    "name": "net/hns3: fix IEEE 1588 PTP",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "da10628e0c28d2fcc701d0a3bd1a29a8340d9842",
    "submitter": {
        "id": 1944,
        "url": "http://patches.dpdk.org/api/people/1944/?format=api",
        "name": "humin (Q)",
        "email": "humin29@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1619687943-50507-1-git-send-email-humin29@huawei.com/mbox/",
    "series": [
        {
            "id": 16752,
            "url": "http://patches.dpdk.org/api/series/16752/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16752",
            "date": "2021-04-29T09:19:03",
            "name": "net/hns3: fix IEEE 1588 PTP",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/16752/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/92391/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92391/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A305AA0547;\n\tThu, 29 Apr 2021 11:19:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8372E41194;\n\tThu, 29 Apr 2021 11:19:00 +0200 (CEST)",
            "from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191])\n by mails.dpdk.org (Postfix) with ESMTP id AE67841125\n for <dev@dpdk.org>; Thu, 29 Apr 2021 11:18:59 +0200 (CEST)",
            "from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59])\n by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FW8xJ4HkRzPvJk\n for <dev@dpdk.org>; Thu, 29 Apr 2021 17:15:48 +0800 (CST)",
            "from localhost.localdomain (10.69.192.56) by\n DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id\n 14.3.498.0; Thu, 29 Apr 2021 17:18:54 +0800"
        ],
        "From": "\"Min Hu (Connor)\" <humin29@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@intel.com>",
        "Date": "Thu, 29 Apr 2021 17:19:03 +0800",
        "Message-ID": "<1619687943-50507-1-git-send-email-humin29@huawei.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.69.192.56]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH] net/hns3: fix IEEE 1588 PTP",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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 jumbo frame is enabled, Rx function will choose 'Scalar Scattered'\nfunction which has no PTP handling.\n\nThis patche fixed it by add PTP handling in 'Scalar Scattered' function.\n\nFixes: 38b539d96eb6 (\"net/hns3: support IEEE 1588 PTP\")\n\nSigned-off-by: Min Hu (Connor) <humin29@huawei.com>\n---\n drivers/net/hns3/hns3_rxtx.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c\nindex 3881a72..5b22c6c 100644\n--- a/drivers/net/hns3/hns3_rxtx.c\n+++ b/drivers/net/hns3/hns3_rxtx.c\n@@ -2654,6 +2654,9 @@ hns3_recv_scattered_pkts(void *rx_queue,\n \t\t\tcontinue;\n \t\t}\n \n+\t\tif (unlikely(bd_base_info & BIT(HNS3_RXD_TS_VLD_B)))\n+\t\t\thns3_rx_ptp_timestamp_handle(rxq, first_seg, rxdp);\n+\n \t\t/*\n \t\t * The last buffer of the received packet. packet len from\n \t\t * buffer description may contains CRC len, packet len should\n@@ -2704,6 +2707,9 @@ hns3_recv_scattered_pkts(void *rx_queue,\n \t\tfirst_seg->packet_type = hns3_rx_calc_ptype(rxq,\n \t\t\t\t\t\tl234_info, ol_info);\n \n+\t\tif (first_seg->packet_type == RTE_PTYPE_L2_ETHER_TIMESYNC)\n+\t\t\trxm->ol_flags |= PKT_RX_IEEE1588_PTP;\n+\n \t\thns3_rxd_to_vlan_tci(rxq, first_seg, l234_info, &rxd);\n \n \t\t/* Increment bytes counter */\n",
    "prefixes": []
}