Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115901/?format=api
https://patches.dpdk.org/api/patches/115901/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220905105828.3190335-11-junfeng.guo@intel.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": "<20220905105828.3190335-11-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220905105828.3190335-11-junfeng.guo@intel.com", "date": "2022-09-05T10:58:24", "name": "[v2,10/14] net/idpf: add support for mtu configuration", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "bd55b14666a59aefd023a78fa92dc06358219694", "submitter": { "id": 1785, "url": "https://patches.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@intel.com" }, "delegate": { "id": 3961, "url": "https://patches.dpdk.org/api/users/3961/?format=api", "username": "arybchenko", "first_name": "Andrew", "last_name": "Rybchenko", "email": "andrew.rybchenko@oktetlabs.ru" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220905105828.3190335-11-junfeng.guo@intel.com/mbox/", "series": [ { "id": 24538, "url": "https://patches.dpdk.org/api/series/24538/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24538", "date": "2022-09-05T10:58:14", "name": "add support for idpf PMD in DPDK", "version": 2, "mbox": "https://patches.dpdk.org/series/24538/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/115901/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/115901/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8E2E3A054F;\n\tMon, 5 Sep 2022 12:59:48 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 38FCF42B8C;\n\tMon, 5 Sep 2022 12:59:00 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 63A6D4114A\n for <dev@dpdk.org>; Mon, 5 Sep 2022 12:58:58 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Sep 2022 03:58:57 -0700", "from dpdk-jf-ntb-v2.sh.intel.com ([10.67.118.246])\n by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2022 03:58:56 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1662375538; x=1693911538;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=ev5IREo4kkx/scWFdNdcqEWrCQkf++QLkp5Vajl1C/c=;\n b=Gtti6O6Uc8PldIhwdwuMe9z8zGZ6bYpPZ6n8r0ocKSdTHz/V47Rsukd9\n K/GbxIUah2E2t5HKt9w9EU3L30IVNtIAUvPmbgmvg8ox/w+rwBipAQf5j\n DOBibf56IvwXrgKzjenhCp0gUcQg9mpL/m6UxSBDo/PqZH3O8JerxTijS\n kDP4Ek62dHVB7gk4RfkXdx1RJM+Av6tsh8yYk9mb6sVIPQqYgDBjmT4EH\n 1ofKTSI8wt7uJnbmyTTQ2WF6p3ABBFBtatbPaYDirqEeRat6uQ4tNLdzC\n 6MEoBzbB06lG9TZQBCpTC/jgvP/7myNhj1E1apidHsG3j/WaeySZQNnlY Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10460\"; a=\"297676335\"", "E=Sophos;i=\"5.93,291,1654585200\"; d=\"scan'208\";a=\"297676335\"", "E=Sophos;i=\"5.93,291,1654585200\"; d=\"scan'208\";a=\"682023921\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com,\n\tbeilei.xing@intel.com", "Cc": "dev@dpdk.org,\n\txiao.w.wang@intel.com,\n\tjunfeng.guo@intel.com", "Subject": "[PATCH v2 10/14] net/idpf: add support for mtu configuration", "Date": "Mon, 5 Sep 2022 18:58:24 +0800", "Message-Id": "<20220905105828.3190335-11-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220905105828.3190335-1-junfeng.guo@intel.com>", "References": "<20220803113104.1184059-1-junfeng.guo@intel.com>\n <20220905105828.3190335-1-junfeng.guo@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "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>", "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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Add dev ops mtu_set.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/idpf/idpf_ethdev.c | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)", "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex b1e2ca21ca..6b3e7eff89 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -34,6 +34,7 @@ static int idpf_dev_stop(struct rte_eth_dev *dev);\n static int idpf_dev_close(struct rte_eth_dev *dev);\n static int idpf_dev_info_get(struct rte_eth_dev *dev,\n \t\t\t struct rte_eth_dev_info *dev_info);\n+static int idpf_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu);\n \n int\n idpf_dev_link_update(struct rte_eth_dev *dev,\n@@ -71,6 +72,7 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.tx_queue_release\t\t= idpf_dev_tx_queue_release,\n \t.dev_infos_get\t\t\t= idpf_dev_info_get,\n \t.link_update\t\t\t= idpf_dev_link_update,\n+\t.mtu_set\t\t\t= idpf_dev_mtu_set,\n };\n \n static int\n@@ -151,6 +153,18 @@ idpf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \treturn 0;\n }\n \n+static int\n+idpf_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu __rte_unused)\n+{\n+\t/* mtu setting is forbidden if port is start */\n+\tif (dev->data->dev_started) {\n+\t\tPMD_DRV_LOG(ERR, \"port must be stopped before configuration\");\n+\t\treturn -EBUSY;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static int\n idpf_init_vport_req_info(struct rte_eth_dev *dev)\n {\n@@ -474,6 +488,13 @@ idpf_dev_start(struct rte_eth_dev *dev)\n \n \tvport->stopped = 0;\n \n+\tif (dev->data->mtu > vport->max_mtu) {\n+\t\tPMD_DRV_LOG(ERR, \"MTU should be less than %d\", vport->max_mtu);\n+\t\tgoto err_mtu;\n+\t}\n+\n+\tvport->max_pkt_len = dev->data->mtu + IDPF_ETH_OVERHEAD;\n+\n \tif (idpf_start_queues(dev)) {\n \t\tPMD_DRV_LOG(ERR, \"Failed to start queues\");\n \t\tgoto err_mtu;\n", "prefixes": [ "v2", "10/14" ] }{ "id": 115901, "url": "