Show a patch.

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

{
    "id": 44849,
    "url": "http://patches.dpdk.org/api/patches/44849/",
    "web_url": "http://patches.dpdk.org/patch/44849/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1537277516-8876-5-git-send-email-hemant.agrawal@nxp.com>",
    "date": "2018-09-18T13:31:47",
    "name": "[v2,04/13] net/dpaa: fix link speed based on MAC type",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4cb6403ce36ba50c0c03b576dc37e1aeeaa4ab7e",
    "submitter": {
        "id": 477,
        "url": "http://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/44849/mbox/",
    "series": [
        {
            "id": 1371,
            "url": "http://patches.dpdk.org/api/series/1371/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1371",
            "date": "2018-09-18T13:31:43",
            "name": "NXP DPAA driver enhancements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/1371/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44849/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44849/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.7.4",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C6EC958CB;\n\tTue, 18 Sep 2018 15:34:10 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n\tby dpdk.org (Postfix) with ESMTP id 2AE234CA7;\n\tTue, 18 Sep 2018 15:34:04 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 11C55200144;\n\tTue, 18 Sep 2018 15:34:04 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8E76120002E;\n\tTue, 18 Sep 2018 15:34:00 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n\t[10.232.134.28])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 118CA402FB;\n\tTue, 18 Sep 2018 21:33:54 +0800 (SGT)"
        ],
        "References": "<1535539660-20228-2-git-send-email-hemant.agrawal@nxp.com>\n\t<1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1537277516-8876-5-git-send-email-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net,\n\tferruh.yigit@intel.com",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Tue, 18 Sep 2018 19:01:47 +0530",
        "Cc": "Sachin Saxena <sachin.saxena@nxp.com>, shreyansh.jain@nxp.com,\n\tstable@dpdk.org",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 04/13] net/dpaa: fix link speed based on MAC\n\ttype"
    },
    "content": "From: Sachin Saxena <sachin.saxena@nxp.com>\n\nThe link speed shall be on the basis of mac type.\n\nFixes: 799db4568c76 (\"net/dpaa: support device info and speed capability\")\nCc: shreyansh.jain@nxp.com\nCc: stable@dpdk.org\n\nSigned-off-by: Sachin Saxena <sachin.saxena@nxp.com>\n---\n drivers/net/dpaa/dpaa_ethdev.c | 11 +++++++++--\n 1 file changed, 9 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex 9ea8510..fa63afc 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -337,8 +337,15 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev,\n \tdev_info->max_vfs = 0;\n \tdev_info->max_vmdq_pools = ETH_16_POOLS;\n \tdev_info->flow_type_rss_offloads = DPAA_RSS_OFFLOAD_ALL;\n-\tdev_info->speed_capa = (ETH_LINK_SPEED_1G |\n-\t\t\t\tETH_LINK_SPEED_10G);\n+\n+\tif (dpaa_intf->fif->mac_type == fman_mac_1g)\n+\t\tdev_info->speed_capa = ETH_LINK_SPEED_1G;\n+\telse if (dpaa_intf->fif->mac_type == fman_mac_10g)\n+\t\tdev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G);\n+\telse\n+\t\tDPAA_PMD_ERR(\"invalid link_speed: %s, %d\",\n+\t\t\t     dpaa_intf->name, dpaa_intf->fif->mac_type);\n+\n \tdev_info->rx_offload_capa = dev_rx_offloads_sup |\n \t\t\t\t\tdev_rx_offloads_nodis;\n \tdev_info->tx_offload_capa = dev_tx_offloads_sup |\n",
    "prefixes": [
        "v2",
        "04/13"
    ]
}