Show a patch.

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

{
    "id": 73408,
    "url": "https://patches.dpdk.org/api/patches/73408/",
    "web_url": "https://patches.dpdk.org/patch/73408/",
    "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-29-hemant.agrawal@nxp.com>",
    "date": "2020-07-07T09:22:43",
    "name": "[v2,28/29] net/dpaa2: configure per class distribution size",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f93524c218146b0ea120f0b7a0d7031383c5c1c9",
    "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/73408/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/73408/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73408/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 8DAB2A00BE;\n\tTue,  7 Jul 2020 11:33:09 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 74A611DE2F;\n\tTue,  7 Jul 2020 11:27:41 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id F10241DD6E\n for <dev@dpdk.org>; Tue,  7 Jul 2020 11:27:17 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D61532008DD;\n Tue,  7 Jul 2020 11:27:17 +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 29CB02008E1;\n Tue,  7 Jul 2020 11:27:16 +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 DC336402F0;\n Tue,  7 Jul 2020 17:27:13 +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-29-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:43 +0530",
        "Cc": "ferruh.yigit@intel.com,\n\tJun Yang <jun.yang@nxp.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 28/29] net/dpaa2: configure per class\n\tdistribution size"
    },
    "content": "From: Jun Yang <jun.yang@nxp.com>\n\nTC distribution size is set with dist_queues or\n\nnb_rx_queues % dist_queues in order of TC priority.\n\nSigned-off-by: Jun Yang <jun.yang@nxp.com>\n---\n drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 18 ++++++++++++++++--\n 1 file changed, 16 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c\nindex d69156bcc..25b1d2bb6 100644\n--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c\n+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c\n@@ -88,7 +88,21 @@ dpaa2_setup_flow_dist(struct rte_eth_dev *eth_dev,\n \tstruct dpni_rx_dist_cfg tc_cfg;\n \tstruct dpkg_profile_cfg kg_cfg;\n \tvoid *p_params;\n-\tint ret;\n+\tint ret, tc_dist_queues;\n+\n+\t/*TC distribution size is set with dist_queues or\n+\t * nb_rx_queues % dist_queues in order of TC priority index.\n+\t * Calculating dist size for this tc_index:-\n+\t */\n+\ttc_dist_queues = eth_dev->data->nb_rx_queues -\n+\t\ttc_index * priv->dist_queues;\n+\tif (tc_dist_queues <= 0) {\n+\t\tDPAA2_PMD_INFO(\"No distribution on TC%d\", tc_index);\n+\t\treturn 0;\n+\t}\n+\n+\tif (tc_dist_queues > priv->dist_queues)\n+\t\ttc_dist_queues = priv->dist_queues;\n \n \tp_params = rte_malloc(\n \t\tNULL, DIST_PARAM_IOVA_SIZE, RTE_CACHE_LINE_SIZE);\n@@ -109,7 +123,7 @@ dpaa2_setup_flow_dist(struct rte_eth_dev *eth_dev,\n \t}\n \n \ttc_cfg.key_cfg_iova = (uint64_t)(DPAA2_VADDR_TO_IOVA(p_params));\n-\ttc_cfg.dist_size = priv->dist_queues;\n+\ttc_cfg.dist_size = tc_dist_queues;\n \ttc_cfg.enable = true;\n \ttc_cfg.tc = tc_index;\n \n",
    "prefixes": [
        "v2",
        "28/29"
    ]
}