Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/45082/?format=api
https://patches.dpdk.org/api/patches/45082/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1537527962-25757-3-git-send-email-hemant.agrawal@nxp.com/", "project": { "id": 1, "url": "https://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": "<1537527962-25757-3-git-send-email-hemant.agrawal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1537527962-25757-3-git-send-email-hemant.agrawal@nxp.com", "date": "2018-09-21T11:05:51", "name": "[v3,02/13] net/dpaa: fix jumbo buffer config", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "99538e44e4fed2669a0d6c289caabb853e8f4410", "submitter": { "id": 477, "url": "https://patches.dpdk.org/api/people/477/?format=api", "name": "Hemant Agrawal", "email": "hemant.agrawal@nxp.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1537527962-25757-3-git-send-email-hemant.agrawal@nxp.com/mbox/", "series": [ { "id": 1437, "url": "https://patches.dpdk.org/api/series/1437/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1437", "date": "2018-09-21T11:05:49", "name": "NXP DPAA driver enhancements", "version": 3, "mbox": "https://patches.dpdk.org/series/1437/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/45082/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/45082/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C36E65398;\n\tFri, 21 Sep 2018 13:08:12 +0200 (CEST)", "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n\tby dpdk.org (Postfix) with ESMTP id 4A3F84CBD;\n\tFri, 21 Sep 2018 13:08:08 +0200 (CEST)", "from inva021.nxp.com (localhost [127.0.0.1])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id DD188200256;\n\tFri, 21 Sep 2018 13:08:07 +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 98A3420004C;\n\tFri, 21 Sep 2018 13:08:05 +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 D840E402E5;\n\tFri, 21 Sep 2018 19:08:01 +0800 (SGT)" ], "From": "Hemant Agrawal <hemant.agrawal@nxp.com>", "To": "dev@dpdk.org,\n\tthomas@monjalon.net,\n\tferruh.yigit@intel.com", "Cc": "stable@dpdk.org", "Date": "Fri, 21 Sep 2018 16:35:51 +0530", "Message-Id": "<1537527962-25757-3-git-send-email-hemant.agrawal@nxp.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1537527962-25757-1-git-send-email-hemant.agrawal@nxp.com>", "References": "<1537277516-8876-2-git-send-email-hemant.agrawal@nxp.com>\n\t<1537527962-25757-1-git-send-email-hemant.agrawal@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v3 02/13] net/dpaa: fix jumbo buffer config", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Set the missing dev data mtu for the correct size.\nSet the max supported size in hw, if user is asking for more.\n\nFixes: 9658ac3a4ef6 (\"net/dpaa: set the correct frame size in device MTU\")\nCc: stable@dpdk.org\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/net/dpaa/dpaa_ethdev.c | 22 ++++++++++++++++------\n 1 file changed, 16 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex b9bd557..b9b4999 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -193,14 +193,24 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev)\n \t}\n \n \tif (rx_offloads & DEV_RX_OFFLOAD_JUMBO_FRAME) {\n+\t\tuint32_t max_len;\n+\n+\t\tDPAA_PMD_DEBUG(\"enabling jumbo\");\n+\n \t\tif (dev->data->dev_conf.rxmode.max_rx_pkt_len <=\n-\t\t DPAA_MAX_RX_PKT_LEN) {\n-\t\t\tfman_if_set_maxfrm(dpaa_intf->fif,\n-\t\t\t\tdev->data->dev_conf.rxmode.max_rx_pkt_len);\n-\t\t\treturn 0;\n-\t\t} else {\n-\t\t\treturn -1;\n+\t\t DPAA_MAX_RX_PKT_LEN)\n+\t\t\tmax_len = dev->data->dev_conf.rxmode.max_rx_pkt_len;\n+\t\telse {\n+\t\t\tDPAA_PMD_INFO(\"enabling jumbo override conf max len=%d \"\n+\t\t\t\t\"supported is %d\",\n+\t\t\t\tdev->data->dev_conf.rxmode.max_rx_pkt_len,\n+\t\t\t\tDPAA_MAX_RX_PKT_LEN);\n+\t\t\tmax_len = DPAA_MAX_RX_PKT_LEN;\n \t\t}\n+\n+\t\tfman_if_set_maxfrm(dpaa_intf->fif, max_len);\n+\t\tdev->data->mtu = max_len\n+\t\t\t\t- ETHER_HDR_LEN - ETHER_CRC_LEN - VLAN_TAG_SIZE;\n \t}\n \treturn 0;\n }\n", "prefixes": [ "v3", "02/13" ] }{ "id": 45082, "url": "