Show a patch.

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

{
    "id": 73390,
    "url": "https://patches.dpdk.org/api/patches/73390/",
    "web_url": "https://patches.dpdk.org/patch/73390/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200707092244.12791-11-hemant.agrawal@nxp.com>",
    "date": "2020-07-07T09:22:25",
    "name": "[v2,10/29] net/dpaa: add 2.5G support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0a2bdbf50e1dc861f2e1543024a399552a873f40",
    "submitter": {
        "id": 477,
        "url": "https://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73390/mbox/",
    "series": [
        {
            "id": 10842,
            "url": "https://patches.dpdk.org/api/series/10842/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10842",
            "date": "2020-07-07T09:22:15",
            "name": "NXP DPAAx enhancements",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/10842/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73390/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73390/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.17.1",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D460EA00BE;\n\tTue,  7 Jul 2020 11:28:50 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 69FD21DD4D;\n\tTue,  7 Jul 2020 11:27:15 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id A0E8A1DBBD\n for <dev@dpdk.org>; Tue,  7 Jul 2020 11:27:05 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 85B662008CE;\n Tue,  7 Jul 2020 11:27:05 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 448122008E9;\n Tue,  7 Jul 2020 11:27:03 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8B1F7402A8;\n Tue,  7 Jul 2020 17:27:00 +0800 (SGT)"
        ],
        "References": "<20200527132326.1382-1-hemant.agrawal@nxp.com>\n <20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20200707092244.12791-11-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@inbox.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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org",
        "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>",
        "Date": "Tue,  7 Jul 2020 14:52:25 +0530",
        "Cc": "ferruh.yigit@intel.com, Sachin Saxena <sachin.saxena@nxp.com>,\n Gagandeep Singh <g.singh@nxp.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 10/29] net/dpaa: add 2.5G support"
    },
    "content": "From: Sachin Saxena <sachin.saxena@nxp.com>\n\nHandle 2.5Gbps ethernet ports as well.\n\nSigned-off-by: Sachin Saxena <sachin.saxena@nxp.com>\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n doc/guides/nics/features/dpaa.ini         | 2 +-\n drivers/bus/dpaa/base/fman/fman.c         | 6 ++++--\n drivers/bus/dpaa/base/fman/netcfg_layer.c | 3 ++-\n drivers/bus/dpaa/include/fman.h           | 1 +\n drivers/net/dpaa/dpaa_ethdev.c            | 9 ++++++++-\n 5 files changed, 16 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini\nindex 24cfd8566..b00f46a97 100644\n--- a/doc/guides/nics/features/dpaa.ini\n+++ b/doc/guides/nics/features/dpaa.ini\n@@ -4,7 +4,7 @@\n ; Refer to default.ini for the full list of available PMD features.\n ;\n [Features]\n-Speed capabilities   = P\n+Speed capabilities   = Y\n Link status          = Y\n Jumbo frame          = Y\n MTU update           = Y\ndiff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c\nindex 6d77a7e39..ae26041ca 100644\n--- a/drivers/bus/dpaa/base/fman/fman.c\n+++ b/drivers/bus/dpaa/base/fman/fman.c\n@@ -263,7 +263,7 @@ fman_if_init(const struct device_node *dpa_node)\n \t\tfman_dealloc_bufs_mask_hi = 0;\n \t\tfman_dealloc_bufs_mask_lo = 0;\n \t}\n-\t/* Is the MAC node 1G, 10G? */\n+\t/* Is the MAC node 1G, 2.5G, 10G? */\n \t__if->__if.is_memac = 0;\n \n \tif (of_device_is_compatible(mac_node, \"fsl,fman-1g-mac\"))\n@@ -279,7 +279,9 @@ fman_if_init(const struct device_node *dpa_node)\n \t\t\t/* Right now forcing memac to 1g in case of error*/\n \t\t\t__if->__if.mac_type = fman_mac_1g;\n \t\t} else {\n-\t\t\tif (strstr(char_prop, \"sgmii\"))\n+\t\t\tif (strstr(char_prop, \"sgmii-2500\"))\n+\t\t\t\t__if->__if.mac_type = fman_mac_2_5g;\n+\t\t\telse if (strstr(char_prop, \"sgmii\"))\n \t\t\t\t__if->__if.mac_type = fman_mac_1g;\n \t\t\telse if (strstr(char_prop, \"rgmii\")) {\n \t\t\t\t__if->__if.mac_type = fman_mac_1g;\ndiff --git a/drivers/bus/dpaa/base/fman/netcfg_layer.c b/drivers/bus/dpaa/base/fman/netcfg_layer.c\nindex 36eca88cd..b7009f229 100644\n--- a/drivers/bus/dpaa/base/fman/netcfg_layer.c\n+++ b/drivers/bus/dpaa/base/fman/netcfg_layer.c\n@@ -44,7 +44,8 @@ dump_netcfg(struct netcfg_info *cfg_ptr)\n \n \t\tprintf(\"\\n+ Fman %d, MAC %d (%s);\\n\",\n \t\t       __if->fman_idx, __if->mac_idx,\n-\t\t       (__if->mac_type == fman_mac_1g) ? \"1G\" : \"10G\");\n+\t\t       (__if->mac_type == fman_mac_1g) ? \"1G\" :\n+\t\t       (__if->mac_type == fman_mac_2_5g) ? \"2.5G\" : \"10G\");\n \n \t\tprintf(\"\\tmac_addr: %02x:%02x:%02x:%02x:%02x:%02x\\n\",\n \t\t       (&__if->mac_addr)->addr_bytes[0],\ndiff --git a/drivers/bus/dpaa/include/fman.h b/drivers/bus/dpaa/include/fman.h\nindex c02d32d22..b6293b61c 100644\n--- a/drivers/bus/dpaa/include/fman.h\n+++ b/drivers/bus/dpaa/include/fman.h\n@@ -72,6 +72,7 @@ enum fman_mac_type {\n \tfman_offline = 0,\n \tfman_mac_1g,\n \tfman_mac_10g,\n+\tfman_mac_2_5g,\n };\n \n struct mac_addr {\ndiff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex fd2c0c681..c0ded9086 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -356,8 +356,13 @@ static int dpaa_eth_dev_info(struct rte_eth_dev *dev,\n \n \tif (dpaa_intf->fif->mac_type == fman_mac_1g) {\n \t\tdev_info->speed_capa = ETH_LINK_SPEED_1G;\n+\t} else if (dpaa_intf->fif->mac_type == fman_mac_2_5g) {\n+\t\tdev_info->speed_capa = ETH_LINK_SPEED_1G\n+\t\t\t\t\t| ETH_LINK_SPEED_2_5G;\n \t} else if (dpaa_intf->fif->mac_type == fman_mac_10g) {\n-\t\tdev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G);\n+\t\tdev_info->speed_capa = ETH_LINK_SPEED_1G\n+\t\t\t\t\t| ETH_LINK_SPEED_2_5G\n+\t\t\t\t\t| ETH_LINK_SPEED_10G;\n \t} else {\n \t\tDPAA_PMD_ERR(\"invalid link_speed: %s, %d\",\n \t\t\t     dpaa_intf->name, dpaa_intf->fif->mac_type);\n@@ -388,6 +393,8 @@ static int dpaa_eth_link_update(struct rte_eth_dev *dev,\n \n \tif (dpaa_intf->fif->mac_type == fman_mac_1g)\n \t\tlink->link_speed = ETH_SPEED_NUM_1G;\n+\telse if (dpaa_intf->fif->mac_type == fman_mac_2_5g)\n+\t\tlink->link_speed = ETH_SPEED_NUM_2_5G;\n \telse if (dpaa_intf->fif->mac_type == fman_mac_10g)\n \t\tlink->link_speed = ETH_SPEED_NUM_10G;\n \telse\n",
    "prefixes": [
        "v2",
        "10/29"
    ]
}