get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52688,
    "url": "http://patches.dpdk.org/api/patches/52688/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190412105105.24351-5-g.singh@nxp.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": "<20190412105105.24351-5-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190412105105.24351-5-g.singh@nxp.com",
    "date": "2019-04-12T11:01:26",
    "name": "[v3,04/13] net/enetc: set interface mode for SXGMII",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "eb3c0418069e37518f3a5161db1bcd684e56cce3",
    "submitter": {
        "id": 1068,
        "url": "http://patches.dpdk.org/api/people/1068/?format=api",
        "name": "Gagandeep Singh",
        "email": "g.singh@nxp.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@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190412105105.24351-5-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 4280,
            "url": "http://patches.dpdk.org/api/series/4280/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4280",
            "date": "2019-04-12T11:01:11",
            "name": "ENETC PMD basic features and bug fixes",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/4280/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52688/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/52688/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "MIME-Version": "1.0",
        "X-MS-TNEF-Correlator": "",
        "Subject": "[dpdk-dev] [PATCH v3 04/13] net/enetc: set interface mode for SXGMII",
        "Message-ID": "<20190412105105.24351-5-g.singh@nxp.com>",
        "Accept-Language": "en-US",
        "received-spf": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "References": "<1555075598-4988-1-git-send-email-g.singh@nxp.com>\n\t<20190412105105.24351-1-g.singh@nxp.com>",
        "In-Reply-To": "<20190412105105.24351-1-g.singh@nxp.com>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VE1PR04MB6462",
        "X-MS-Exchange-CrossTenant-id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "CC": "Gagandeep Singh <G.Singh@nxp.com>",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(136003)(376002)(366004)(396003)(346002)(39860400002)(189003)(199004)(14444005)(2501003)(186003)(97736004)(7736002)(3846002)(110136005)(99286004)(6116002)(102836004)(86362001)(316002)(2616005)(11346002)(476003)(6506007)(446003)(76176011)(305945005)(26005)(1076003)(106356001)(66066001)(486006)(4326008)(105586002)(386003)(478600001)(52116002)(72206003)(50226002)(5660300002)(6436002)(81156014)(6512007)(71200400001)(8936002)(71190400001)(6486002)(68736007)(53936002)(256004)(25786009)(8676002)(81166006)(36756003)(14454004)(2906002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6462;\n\tH:VE1PR04MB6365.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en;\n\tPTR:InfoNoRecords; MX:1; A:1; ",
        "Content-Transfer-Encoding": "base64",
        "Thread-Index": "AQHU8R8St6HBnR6je0Cc2vB1a9ayIg==",
        "X-OriginatorOrg": "nxp.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "d9cdf23a-5293-4143-5350-08d6bf36351e",
        "Date": "Fri, 12 Apr 2019 11:01:26 +0000",
        "From": "Gagandeep Singh <G.Singh@nxp.com>",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "12 Apr 2019 11:01:26.5657\n\t(UTC)",
        "X-Mailman-Version": "2.1.15",
        "List-Post": "<mailto:dev@dpdk.org>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=Lc7XlH8L2S42CEp6+ahSTJHWjNnLX8i3/wdUswTKs8w=;\n\tb=sTCi1cRtUAS9EBlcz+y5RcRk6Nf+VTZzv2ZEQaowI0R4J7GqmhVtZjibzUCVvjQfaNZaB+V9wKsc05ChsSiahv9WbJBG1YdHGNcKf7g/DssICBRyhCj2u2HEPzTz/7pQ2OONR1dSiB0UBU/hOEgeG3xmFX8iL3Vjn1nGbtz8AbY=",
        "x-ms-exchange-senderadcheck": "1",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>, \"ferruh.yigit@intel.com\"\n\t<ferruh.yigit@intel.com>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 21E6B7CDA;\n\tFri, 12 Apr 2019 13:01:32 +0200 (CEST)",
            "from EUR01-VE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr140081.outbound.protection.outlook.com [40.107.14.81])\n\tby dpdk.org (Postfix) with ESMTP id C48105F62\n\tfor <dev@dpdk.org>; Fri, 12 Apr 2019 13:01:27 +0200 (CEST)",
            "from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by\n\tVE1PR04MB6462.eurprd04.prod.outlook.com (20.179.233.19) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1771.21; Fri, 12 Apr 2019 11:01:26 +0000",
            "from VE1PR04MB6365.eurprd04.prod.outlook.com\n\t([fe80::f5ad:f178:4c55:13e0]) by\n\tVE1PR04MB6365.eurprd04.prod.outlook.com\n\t([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1792.016;\n\tFri, 12 Apr 2019 11:01:26 +0000"
        ],
        "X-MS-Has-Attach": "",
        "x-microsoft-antispam-message-info": "UJQNW4wceBpC/F1a5lRerXGtU6nNDrk9XFRf2AQdV2XiQoHW3Xr/cd7L1jc5uuaoHgm9ol6JBGN2NLbCjLhnYz0Pdo6pZdeXi6cWl2sWd34MS+bXfbAhGqSdEpeQ+/OJY1GMyNT0Y3Q+hjiwSS91BduVvJe/RCIA+GvkD354LUucCPtWC+wy60i9bQxl/jr9Gcx6zRkNL0mJZkTv37yf7BZDpnC3kj7e3PrvYssc9eKrhd2Fi1jZg9+5ddIPd8j0JtMP4nZEFeLBwjKmfqcPhQjxxPkFecQaIGwvhb5siOJPIx5KhnHXiK1iz5MQ6/F7/ugW1Bf+k6mTirh3uAhDpYrBS4qKi5WHOewYqFnbgQc7+EWMQQnWXj5hMIj6tQfhEoxczxqnGcFdsMpiRK/9x3fMZKiJjWzEyWOw6PLDZfY=",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);\n\tSRVR:VE1PR04MB6462; ",
        "Errors-To": "dev-bounces@dpdk.org",
        "x-clientproxiedby": "TYAPR01CA0204.jpnprd01.prod.outlook.com\n\t(2603:1096:404:29::24) To VE1PR04MB6365.eurprd04.prod.outlook.com\n\t(2603:10a6:803:12a::14)",
        "x-ms-traffictypediagnostic": "VE1PR04MB6462:",
        "x-originating-ip": "[92.120.1.68]",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Original-To": "patchwork@dpdk.org",
        "x-forefront-prvs": "0005B05917",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-ms-publictraffictype": "Email",
        "x-microsoft-antispam-prvs": "<VE1PR04MB6462264C0B6A27D6B186F1F0E1280@VE1PR04MB6462.eurprd04.prod.outlook.com>",
        "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
        "x-mailer": "git-send-email 2.17.1",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=G.Singh@nxp.com; ",
        "Thread-Topic": "[PATCH v3 04/13] net/enetc: set interface mode for SXGMII",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Content-Language": "en-US",
        "x-ms-office365-filtering-correlation-id": "d9cdf23a-5293-4143-5350-08d6bf36351e",
        "Precedence": "list"
    },
    "content": "Support for SXGMII port has been enabled. It will\ndepends on boot loader information passed through IERB.\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/net/enetc/base/enetc_hw.h | 13 ++++++++++++-\n drivers/net/enetc/enetc_ethdev.c  | 11 +++++++++++\n 2 files changed, 23 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/enetc/base/enetc_hw.h b/drivers/net/enetc/base/enetc_hw.h\r\nindex f36fa11..e3738a6 100644\r\n--- a/drivers/net/enetc/base/enetc_hw.h\r\n+++ b/drivers/net/enetc/base/enetc_hw.h\r\n@@ -1,5 +1,5 @@\r\n /* SPDX-License-Identifier: BSD-3-Clause\r\n- * Copyright 2018 NXP\r\n+ * Copyright 2018-2019 NXP\r\n  */\r\n \r\n #ifndef _ENETC_HW_H_\r\n@@ -84,6 +84,12 @@\r\n #define ENETC_PSIPMAR1(n)\t\t(0x00104 + (n) * 0x20)\r\n #define ENETC_PCAPR0\t\t\t0x00900\r\n #define ENETC_PCAPR1\t\t\t0x00904\r\n+#define ENETC_PM0_IF_MODE\t\t0x8300\r\n+#define ENETC_PM1_IF_MODE\t\t0x9300\r\n+#define ENETC_PMO_IFM_RG\t\tBIT(2)\r\n+#define ENETC_PM0_IFM_RLP\t\t(BIT(5) | BIT(11))\r\n+#define ENETC_PM0_IFM_RGAUTO\t\t(BIT(15) | ENETC_PMO_IFM_RG | BIT(1))\r\n+#define ENETC_PM0_IFM_XGMII\t\tBIT(12)\r\n \r\n #define ENETC_PV0CFGR(n)\t\t(0x00920 + (n) * 0x10)\r\n #define ENETC_PVCFGR_SET_TXBDR(val)\t((val) & 0xff)\r\n@@ -109,6 +115,11 @@\r\n #define ENETC_G_EIPBRR0\t\t\t0x00bf8\r\n #define ENETC_G_EIPBRR1\t\t\t0x00bfc\r\n \r\n+\r\n+/* MAC Counters */\r\n+#define ENETC_G_EPFBLPR(n)\t\t(0xd00 + 4 * (n))\r\n+#define ENETC_G_EPFBLPR1_XGMII\t\t0x80000000\r\n+\r\n /* general register accessors */\r\n #define enetc_rd_reg(reg)\trte_read32((void *)(reg))\r\n #define enetc_wr_reg(reg, val)\trte_write32((val), (void *)(reg))\r\ndiff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\r\nindex f1807b9..91e9692 100644\r\n--- a/drivers/net/enetc/enetc_ethdev.c\r\n+++ b/drivers/net/enetc/enetc_ethdev.c\r\n@@ -139,6 +139,17 @@ static int enetc_tx_queue_setup(struct rte_eth_dev *dev, uint16_t tx_queue_id,\r\n \tENETC_REG_WRITE(ENETC_GET_HW_ADDR(hw->hw.port, ENETC_PMR),\r\n \t\t\tval | ENETC_PMR_EN);\r\n \r\n+\t/* set auto-speed for RGMII */\r\n+\tif (enetc_port_rd(&hw->hw, ENETC_PM0_IF_MODE) & ENETC_PMO_IFM_RG) {\r\n+\t\tenetc_port_wr(&hw->hw, ENETC_PM0_IF_MODE, ENETC_PM0_IFM_RGAUTO);\r\n+\t\tenetc_port_wr(&hw->hw, ENETC_PM1_IF_MODE, ENETC_PM0_IFM_RGAUTO);\r\n+\t}\r\n+\tif (enetc_global_rd(&hw->hw,\r\n+\t\t\t    ENETC_G_EPFBLPR(1)) == ENETC_G_EPFBLPR1_XGMII) {\r\n+\t\tenetc_port_wr(&hw->hw, ENETC_PM0_IF_MODE, ENETC_PM0_IFM_XGMII);\r\n+\t\tenetc_port_wr(&hw->hw, ENETC_PM1_IF_MODE, ENETC_PM0_IFM_XGMII);\r\n+\t}\r\n+\r\n \treturn 0;\r\n }\r\n \r\n",
    "prefixes": [
        "v3",
        "04/13"
    ]
}