get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64513,
    "url": "http://patches.dpdk.org/api/patches/64513/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200113042452.29013-1-kirankumark@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": "<20200113042452.29013-1-kirankumark@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200113042452.29013-1-kirankumark@marvell.com",
    "date": "2020-01-13T04:24:52",
    "name": "net/octeontx2: add check for PTP and HIGIG2",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "2c52aced47b4cb9f8fd3dbace16343f33f57e786",
    "submitter": {
        "id": 1260,
        "url": "http://patches.dpdk.org/api/people/1260/?format=api",
        "name": "Kiran Kumar Kokkilagadda",
        "email": "kirankumark@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/20200113042452.29013-1-kirankumark@marvell.com/mbox/",
    "series": [
        {
            "id": 8067,
            "url": "http://patches.dpdk.org/api/series/8067/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8067",
            "date": "2020-01-13T04:24:52",
            "name": "net/octeontx2: add check for PTP and HIGIG2",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/8067/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64513/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/64513/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D30D2A04F0;\n\tMon, 13 Jan 2020 05:25:25 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 43B7D1D514;\n\tMon, 13 Jan 2020 05:25:25 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 951EE1D510\n for <dev@dpdk.org>; Mon, 13 Jan 2020 05:25:23 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 00D4K86K018584 for <dev@dpdk.org>; Sun, 12 Jan 2020 20:25:22 -0800",
            "from sc-exch04.marvell.com ([199.233.58.184])\n by mx0a-0016f401.pphosted.com with ESMTP id 2xfckumnbs-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Sun, 12 Jan 2020 20:25:22 -0800",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com\n (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 12 Jan\n 2020 20:25:21 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Sun, 12 Jan 2020 20:25:21 -0800",
            "from localhost.localdomain (unknown [10.28.34.15])\n by maili.marvell.com (Postfix) with ESMTP id 2A6BD3F703F;\n Sun, 12 Jan 2020 20:25:19 -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 : mime-version : content-type; s=pfpt0818;\n bh=wtO2R634Eox7M2cYHsxkmgrqP8GxStDtR1rQ7UCgYm0=;\n b=pBteZdPBCmayVqL7OaMuv1YmMBnFqvwfuAU2VBziZ2q8CxVnW9nFMl+N7yOCRtrZndSa\n IA3nAZYKDQqJosEO50pqn0k+jYoYTPJPHJwOk6UZamzRgxRthlw6PMENq5EtskR67bOW\n lhwnka6sEDU69rGoV3xLqgeRgNpcdcfU12E65CvtEMEuK72DujO277gpRCvXl15mcy0T\n deZa8Ihwd7HYBCmAWfYpgxI4SFE4SobTF3Orr/gG1iIy3zKKw3d5lMQdsNCutjd1ceDL\n Xvpk0EpAzPjtk7wkPsRAYbqh63r108xnFp7oGNANNjYVWm8LT1pB7Yh3KP+vRfvtIAfN Rg==",
        "From": "<kirankumark@marvell.com>",
        "To": "Jerin Jacob <jerinj@marvell.com>, Nithin Dabilpuram\n <ndabilpuram@marvell.com>, Kiran Kumar K <kirankumark@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Mon, 13 Jan 2020 09:54:52 +0530",
        "Message-ID": "<20200113042452.29013-1-kirankumark@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-01-12_11:2020-01-10,\n 2020-01-12 signatures=0",
        "Subject": "[dpdk-dev]  [PATCH] net/octeontx2: add check for PTP and HIGIG2",
        "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://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: Kiran Kumar K <kirankumark@marvell.com>\n\nFor octeontx2 we won't support both PTP and HIGIG2 together.\nAdded a check to verify this.\n\nSigned-off-by: Kiran Kumar K <kirankumark@marvell.com>\n---\n drivers/net/octeontx2/otx2_ethdev.c | 9 ++++++++-\n drivers/net/octeontx2/otx2_ptp.c    | 5 +++++\n 2 files changed, 13 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c\nindex ed329273d..b4c68191d 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.c\n+++ b/drivers/net/octeontx2/otx2_ethdev.c\n@@ -18,7 +18,8 @@ nix_get_rx_offload_capa(struct otx2_eth_dev *dev)\n {\n \tuint64_t capa = NIX_RX_OFFLOAD_CAPA;\n \n-\tif (otx2_dev_is_vf(dev))\n+\tif (otx2_dev_is_vf(dev) ||\n+\t    dev->npc_flow.switch_header_type == OTX2_PRIV_FLAGS_HIGIG)\n \t\tcapa &= ~DEV_RX_OFFLOAD_TIMESTAMP;\n \n \treturn capa;\n@@ -1641,6 +1642,12 @@ otx2_nix_configure(struct rte_eth_dev *eth_dev)\n \t\tgoto fail_offloads;\n \t}\n \n+\tif (dev->ptp_en &&\n+\t    dev->npc_flow.switch_header_type == OTX2_PRIV_FLAGS_HIGIG) {\n+\t\totx2_err(\" Both PTP and switch header enabled\");\n+\t\tgoto free_nix_lf;\n+\t}\n+\n \trc = nix_lf_switch_header_type_enable(dev);\n \tif (rc) {\n \t\totx2_err(\"Failed to enable switch type nix_lf rc=%d\", rc);\ndiff --git a/drivers/net/octeontx2/otx2_ptp.c b/drivers/net/octeontx2/otx2_ptp.c\nindex f34b9339c..74cb007a0 100644\n--- a/drivers/net/octeontx2/otx2_ptp.c\n+++ b/drivers/net/octeontx2/otx2_ptp.c\n@@ -221,6 +221,11 @@ otx2_nix_timesync_enable(struct rte_eth_dev *eth_dev)\n \t\treturn -EINVAL;\n \t}\n \n+\tif (dev->npc_flow.switch_header_type == OTX2_PRIV_FLAGS_HIGIG) {\n+\t\totx2_err(\"PTP mode not supported in HIGIG mode\");\n+\t\treturn -EINVAL;\n+\t}\n+\n \t/* Allocating a iova address for tx tstamp */\n \tconst struct rte_memzone *ts;\n \tts = rte_eth_dma_zone_reserve(eth_dev, \"otx2_ts\",\n",
    "prefixes": []
}