get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 108516,
    "url": "http://patches.dpdk.org/api/patches/108516/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220303070042.29075-2-ndabilpuram@marvell.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": "<20220303070042.29075-2-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220303070042.29075-2-ndabilpuram@marvell.com",
    "date": "2022-03-03T07:00:42",
    "name": "[2/2] common/cnxk: fix VF data offset",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ed7740475705b71a67db08de566fd2c1a149dc06",
    "submitter": {
        "id": 1202,
        "url": "http://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220303070042.29075-2-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 22002,
            "url": "http://patches.dpdk.org/api/series/22002/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22002",
            "date": "2022-03-03T07:00:41",
            "name": "[1/2] common/cnxk: revert check on bitmap for tm",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22002/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/108516/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/108516/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 CDBBBA04A2;\n\tThu,  3 Mar 2022 08:00:57 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6B2244276C;\n\tThu,  3 Mar 2022 08:00:57 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 9511B4276B\n for <dev@dpdk.org>; Thu,  3 Mar 2022 08:00:55 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 2233tkxS003803;\n Wed, 2 Mar 2022 23:00:52 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ej4vfdkae-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 02 Mar 2022 23:00:52 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Wed, 2 Mar 2022 23:00:50 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Wed, 2 Mar 2022 23:00:50 -0800",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 3471F3F70A8;\n Wed,  2 Mar 2022 23:00:47 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=yfCsA0iowMaxdAGrZZdAcjvm/EGvyvt1EfSFGynPsRk=;\n b=E4V6FxyEkuzvg29kusEccxnY+p4HGjKqiSQ80kaay97KjPIzXs7aHt0wA+SgvHF8TxiY\n NP4wmFF4Do2soDncwGLqZI7dmSn4oKpQsOKfJxmYQilD952y1Dz3zCt2qStJi9ixrQDN\n /nqa1lSqZhSwgiqpFPdUgdZiE8EYfLAVkz//MDX7MmDHMI1MoEsVe46CWG1t2FjEoIXO\n L6qhFhHYUPBDJy7iBo86Wv2d1QYO8gOTUnsCwziJD1zygCQAKnITz+7e0kENwEhG8BOm\n cGrp1s2flUmDQIaC/HYwek3X/hXY+NimD97EOJNPPIp1u4CuTSOL/gBi7bf2tF3fSQJJ HA==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>, Ray Kinsella <mdr@ashroe.eu>",
        "CC": "<dev@dpdk.org>, Harman Kalra <hkalra@marvell.com>",
        "Subject": "[PATCH 2/2] common/cnxk: fix VF data offset",
        "Date": "Thu, 3 Mar 2022 12:30:42 +0530",
        "Message-ID": "<20220303070042.29075-2-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220303070042.29075-1-ndabilpuram@marvell.com>",
        "References": "<20220303070042.29075-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "N-54kMdfruG29KgO-Z-fLIY_y7GOtYGn",
        "X-Proofpoint-GUID": "N-54kMdfruG29KgO-Z-fLIY_y7GOtYGn",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514\n definitions=2022-03-03_02,2022-02-26_01,2022-02-23_01",
        "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"
    },
    "content": "From: Harman Kalra <hkalra@marvell.com>\n\nData offset should be adjusted for VF to skip extra 8 bytes of timestamp,\nif its PF has PTP enabled.\n\nFixes: c443e0d326e1 (\"common/cnxk: support NIX PTP\")\nCc: skori@marvell.com\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n drivers/common/cnxk/roc_nix.h     | 1 +\n drivers/common/cnxk/roc_nix_ptp.c | 8 ++++++++\n drivers/common/cnxk/version.map   | 1 +\n drivers/net/cnxk/cnxk_ethdev.c    | 4 ++++\n 4 files changed, 14 insertions(+)",
    "diff": "diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h\nindex 5e6eb58..dbb816d 100644\n--- a/drivers/common/cnxk/roc_nix.h\n+++ b/drivers/common/cnxk/roc_nix.h\n@@ -864,6 +864,7 @@ int __roc_api roc_nix_ptp_sync_time_adjust(struct roc_nix *roc_nix,\n int __roc_api roc_nix_ptp_info_cb_register(struct roc_nix *roc_nix,\n \t\t\t\t\t   ptp_info_update_t ptp_update);\n void __roc_api roc_nix_ptp_info_cb_unregister(struct roc_nix *roc_nix);\n+bool __roc_api roc_nix_ptp_is_enable(struct roc_nix *roc_nix);\n \n /* VLAN */\n int __roc_api\ndiff --git a/drivers/common/cnxk/roc_nix_ptp.c b/drivers/common/cnxk/roc_nix_ptp.c\nindex 03c4c6e..05e4211 100644\n--- a/drivers/common/cnxk/roc_nix_ptp.c\n+++ b/drivers/common/cnxk/roc_nix_ptp.c\n@@ -120,3 +120,11 @@ roc_nix_ptp_info_cb_unregister(struct roc_nix *roc_nix)\n \n \tdev->ops->ptp_info_update = NULL;\n }\n+\n+bool\n+roc_nix_ptp_is_enable(struct roc_nix *roc_nix)\n+{\n+\tstruct nix *nix = roc_nix_to_nix_priv(roc_nix);\n+\n+\treturn nix->ptp_en;\n+}\ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex d346e6f..2a122e5 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -206,6 +206,7 @@ INTERNAL {\n \troc_nix_ptp_clock_read;\n \troc_nix_ptp_info_cb_register;\n \troc_nix_ptp_info_cb_unregister;\n+\troc_nix_ptp_is_enable;\n \troc_nix_ptp_rx_ena_dis;\n \troc_nix_ptp_sync_time_adjust;\n \troc_nix_ptp_tx_ena_dis;\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex deb95ae..1fa4131 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -1123,6 +1123,10 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev)\n \t\tgoto fail_configure;\n \t}\n \n+\t/* Check if ptp is enable in PF owning this VF*/\n+\tif (!roc_nix_is_pf(nix) && (!roc_nix_is_sdp(nix)))\n+\t\tdev->ptp_en = roc_nix_ptp_is_enable(nix);\n+\n \tdev->npc.channel = roc_nix_get_base_chan(nix);\n \n \tnb_rxq = data->nb_rx_queues;\n",
    "prefixes": [
        "2/2"
    ]
}