get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94753,
    "url": "https://patches.dpdk.org/api/patches/94753/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210623044702.4240-57-ndabilpuram@marvell.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": "<20210623044702.4240-57-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210623044702.4240-57-ndabilpuram@marvell.com",
    "date": "2021-06-23T04:46:56",
    "name": "[v4,56/62] net/cnxk: add timesync enable/disable operations",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7078551b4dfeac055a7e4e68dde478374870fd46",
    "submitter": {
        "id": 1202,
        "url": "https://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210623044702.4240-57-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 17449,
            "url": "https://patches.dpdk.org/api/series/17449/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17449",
            "date": "2021-06-23T04:46:00",
            "name": "Marvell CNXK Ethdev Driver",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/17449/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94753/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94753/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 76AB0A0C41;\n\tWed, 23 Jun 2021 06:53:33 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 49EEB41101;\n\tWed, 23 Jun 2021 06:50:30 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 1572E41122\n for <dev@dpdk.org>; Wed, 23 Jun 2021 06:50:27 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 15N4k9pJ025587 for <dev@dpdk.org>; Tue, 22 Jun 2021 21:50:27 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 39bptj1gwk-8\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 22 Jun 2021 21:50:27 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 22 Jun 2021 21:50:21 -0700",
            "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; Tue, 22 Jun 2021 21:50:21 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 3022A5B6964;\n Tue, 22 Jun 2021 21:50:15 -0700 (PDT)"
        ],
        "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=RDywea/1z5zx5c/Fq+SUdLecbp+3Ge0UlzDws5CMIFg=;\n b=Gh1gbhg86lvfegJpawbVwfwomD1HPej7/JLlDTnNLZBA89rzSJlAf0uSeQMkt67p74Cj\n 1k21nG+HZe9DoJTzDoiRmW7duZDaaqr4mIItx6tOiJItiif+NXzm41XreoVWfwg8HAWN\n 0rDVUOoEeIw7UbIpWo5+7CIBU5Q+VhjTb0vwhEavSSUJQHKmDXxQq+V7JS10/mejtljv\n wA6Jd8oYCP6c53GzjCg/8GPtr9Y3toy030DH7/urT1VYq9Laf2CCLljcSwAofo8c5nsu\n CnKW4uukTvjpbWJl0N94rJM8Ku4vkpalGgBg25ucvL8/9/br/76/cF04tok14g7TP3om Yg==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<jerinj@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com>,\n <pbhagavatula@marvell.com>, <kirankumark@marvell.com>,\n <psatheesh@marvell.com>, <asekhar@marvell.com>, <hkalra@marvell.com>",
        "Date": "Wed, 23 Jun 2021 10:16:56 +0530",
        "Message-ID": "<20210623044702.4240-57-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20210623044702.4240-1-ndabilpuram@marvell.com>",
        "References": "<20210306153404.10781-1-ndabilpuram@marvell.com>\n <20210623044702.4240-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "-ih_oM2WX0hMd563UTVWfleEReLMjydr",
        "X-Proofpoint-GUID": "-ih_oM2WX0hMd563UTVWfleEReLMjydr",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790\n definitions=2021-06-23_01:2021-06-22,\n 2021-06-23 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v4 56/62] net/cnxk: add timesync enable/disable\n operations",
        "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": "From: Sunil Kumar Kori <skori@marvell.com>\n\nPatch implements timesync enable/disable operations for\ncn9k and cn10k platforms.\n\nSigned-off-by: Sunil Kumar Kori <skori@marvell.com>\n---\n drivers/net/cnxk/cn10k_ethdev.c | 50 +++++++++++++++++++++++++++++++++++++++++\n drivers/net/cnxk/cn9k_ethdev.c  | 50 +++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 100 insertions(+)",
    "diff": "diff --git a/drivers/net/cnxk/cn10k_ethdev.c b/drivers/net/cnxk/cn10k_ethdev.c\nindex 5e0de13..b079edb 100644\n--- a/drivers/net/cnxk/cn10k_ethdev.c\n+++ b/drivers/net/cnxk/cn10k_ethdev.c\n@@ -363,6 +363,54 @@ cn10k_nix_ptp_info_update_cb(struct roc_nix *nix, bool ptp_en)\n }\n \n static int\n+cn10k_nix_timesync_enable(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tint i, rc;\n+\n+\trc = cnxk_nix_timesync_enable(eth_dev);\n+\tif (rc)\n+\t\treturn rc;\n+\n+\tdev->rx_offload_flags |= NIX_RX_OFFLOAD_TSTAMP_F;\n+\tdev->tx_offload_flags |= NIX_TX_OFFLOAD_TSTAMP_F;\n+\n+\tfor (i = 0; i < eth_dev->data->nb_tx_queues; i++)\n+\t\tnix_form_default_desc(dev, eth_dev->data->tx_queues[i], i);\n+\n+\t/* Setting up the rx[tx]_offload_flags due to change\n+\t * in rx[tx]_offloads.\n+\t */\n+\tcn10k_eth_set_rx_function(eth_dev);\n+\tcn10k_eth_set_tx_function(eth_dev);\n+\treturn 0;\n+}\n+\n+static int\n+cn10k_nix_timesync_disable(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tint i, rc;\n+\n+\trc = cnxk_nix_timesync_disable(eth_dev);\n+\tif (rc)\n+\t\treturn rc;\n+\n+\tdev->rx_offload_flags &= ~NIX_RX_OFFLOAD_TSTAMP_F;\n+\tdev->tx_offload_flags &= ~NIX_TX_OFFLOAD_TSTAMP_F;\n+\n+\tfor (i = 0; i < eth_dev->data->nb_tx_queues; i++)\n+\t\tnix_form_default_desc(dev, eth_dev->data->tx_queues[i], i);\n+\n+\t/* Setting up the rx[tx]_offload_flags due to change\n+\t * in rx[tx]_offloads.\n+\t */\n+\tcn10k_eth_set_rx_function(eth_dev);\n+\tcn10k_eth_set_tx_function(eth_dev);\n+\treturn 0;\n+}\n+\n+static int\n cn10k_nix_dev_start(struct rte_eth_dev *eth_dev)\n {\n \tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n@@ -408,6 +456,8 @@ nix_eth_dev_ops_override(void)\n \tcnxk_eth_dev_ops.tx_queue_stop = cn10k_nix_tx_queue_stop;\n \tcnxk_eth_dev_ops.dev_start = cn10k_nix_dev_start;\n \tcnxk_eth_dev_ops.dev_ptypes_set = cn10k_nix_ptypes_set;\n+\tcnxk_eth_dev_ops.timesync_enable = cn10k_nix_timesync_enable;\n+\tcnxk_eth_dev_ops.timesync_disable = cn10k_nix_timesync_disable;\n }\n \n static void\ndiff --git a/drivers/net/cnxk/cn9k_ethdev.c b/drivers/net/cnxk/cn9k_ethdev.c\nindex 0d63604..994fdb7 100644\n--- a/drivers/net/cnxk/cn9k_ethdev.c\n+++ b/drivers/net/cnxk/cn9k_ethdev.c\n@@ -371,6 +371,54 @@ cn9k_nix_ptp_info_update_cb(struct roc_nix *nix, bool ptp_en)\n }\n \n static int\n+cn9k_nix_timesync_enable(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tint i, rc;\n+\n+\trc = cnxk_nix_timesync_enable(eth_dev);\n+\tif (rc)\n+\t\treturn rc;\n+\n+\tdev->rx_offload_flags |= NIX_RX_OFFLOAD_TSTAMP_F;\n+\tdev->tx_offload_flags |= NIX_TX_OFFLOAD_TSTAMP_F;\n+\n+\tfor (i = 0; i < eth_dev->data->nb_tx_queues; i++)\n+\t\tnix_form_default_desc(dev, eth_dev->data->tx_queues[i], i);\n+\n+\t/* Setting up the rx[tx]_offload_flags due to change\n+\t * in rx[tx]_offloads.\n+\t */\n+\tcn9k_eth_set_rx_function(eth_dev);\n+\tcn9k_eth_set_tx_function(eth_dev);\n+\treturn 0;\n+}\n+\n+static int\n+cn9k_nix_timesync_disable(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tint i, rc;\n+\n+\trc = cnxk_nix_timesync_disable(eth_dev);\n+\tif (rc)\n+\t\treturn rc;\n+\n+\tdev->rx_offload_flags &= ~NIX_RX_OFFLOAD_TSTAMP_F;\n+\tdev->tx_offload_flags &= ~NIX_TX_OFFLOAD_TSTAMP_F;\n+\n+\tfor (i = 0; i < eth_dev->data->nb_tx_queues; i++)\n+\t\tnix_form_default_desc(dev, eth_dev->data->tx_queues[i], i);\n+\n+\t/* Setting up the rx[tx]_offload_flags due to change\n+\t * in rx[tx]_offloads.\n+\t */\n+\tcn9k_eth_set_rx_function(eth_dev);\n+\tcn9k_eth_set_tx_function(eth_dev);\n+\treturn 0;\n+}\n+\n+static int\n cn9k_nix_dev_start(struct rte_eth_dev *eth_dev)\n {\n \tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n@@ -416,6 +464,8 @@ nix_eth_dev_ops_override(void)\n \tcnxk_eth_dev_ops.tx_queue_stop = cn9k_nix_tx_queue_stop;\n \tcnxk_eth_dev_ops.dev_start = cn9k_nix_dev_start;\n \tcnxk_eth_dev_ops.dev_ptypes_set = cn9k_nix_ptypes_set;\n+\tcnxk_eth_dev_ops.timesync_enable = cn9k_nix_timesync_enable;\n+\tcnxk_eth_dev_ops.timesync_disable = cn9k_nix_timesync_disable;\n }\n \n static void\n",
    "prefixes": [
        "v4",
        "56/62"
    ]
}