Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/118937/?format=api
http://patchwork.dpdk.org/api/patches/118937/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221021091928.2674471-6-junfeng.guo@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20221021091928.2674471-6-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221021091928.2674471-6-junfeng.guo@intel.com", "date": "2022-10-21T09:19:25", "name": "[v7,5/8] net/gve: add support for MTU setting", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "6744a46f5aab1e88cfb2ef4cdd4c55504fe4dc9e", "submitter": { "id": 1785, "url": "http://patchwork.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@intel.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20221021091928.2674471-6-junfeng.guo@intel.com/mbox/", "series": [ { "id": 25366, "url": "http://patchwork.dpdk.org/api/series/25366/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25366", "date": "2022-10-21T09:19:20", "name": "introduce GVE PMD", "version": 7, "mbox": "http://patchwork.dpdk.org/series/25366/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/118937/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/118937/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 2C965A0032;\n\tFri, 21 Oct 2022 11:21:35 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7197A42C22;\n\tFri, 21 Oct 2022 11:21:22 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id B4A0E42C12\n for <dev@dpdk.org>; Fri, 21 Oct 2022 11:21:15 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Oct 2022 02:21:15 -0700", "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by FMSMGA003.fm.intel.com with ESMTP; 21 Oct 2022 02:21:12 -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=1666344075; x=1697880075;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=eNrSX5GKQPckcnIxiKB0Wm+4RO2z/O4EYr8SKdBNPNc=;\n b=dAxBtdZt6UdwKOL8h7AnwYY8141oywDRs8RQ3K+tDIbfdWhrxYuzmm9S\n eQpXGJ2OFN/P9XqTCE/3HMsonZR7xA1UhjW711KGQeZ+IY4TmZEMFZ5FM\n lXoukcBmiVBYRIvkgv+G38+Qmx9Sg4T4fCyVCzoTS0QcezsnmYI+27/8J\n d/+r4IZT8PHdmWGQfBv9nYy3RLiZfOI5bmo0XuEEBF99nu7GDeohGk50g\n ZdXUvC+TlcoTGz4ynvQ5p4L1OjJTBp+sLcmPAMqliE7tZ1caLnVei+HZ6\n bK7YoTl5pn5V9Q1VUwjXY1dNpN/tavLrBYil1AfB7O4iAnvWtlVHkcd78 A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10506\"; a=\"294355081\"", "E=Sophos;i=\"5.95,200,1661842800\"; d=\"scan'208\";a=\"294355081\"", "E=McAfee;i=\"6500,9779,10506\"; a=\"719619884\"", "E=Sophos;i=\"5.95,200,1661842800\"; d=\"scan'208\";a=\"719619884\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "qi.z.zhang@intel.com, jingjing.wu@intel.com, ferruh.yigit@xilinx.com,\n beilei.xing@intel.com", "Cc": "dev@dpdk.org, xiaoyun.li@intel.com, awogbemila@google.com,\n bruce.richardson@intel.com, hemant.agrawal@nxp.com,\n stephen@networkplumber.org, chenbo.xia@intel.com, helin.zhang@intel.com,\n Junfeng Guo <junfeng.guo@intel.com>", "Subject": "[PATCH v7 5/8] net/gve: add support for MTU setting", "Date": "Fri, 21 Oct 2022 17:19:25 +0800", "Message-Id": "<20221021091928.2674471-6-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20221021091928.2674471-1-junfeng.guo@intel.com>", "References": "<20221020103656.1068036-1-junfeng.guo@intel.com>\n <20221021091928.2674471-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": "Support dev_ops mtu_set.\n\nSigned-off-by: Xiaoyun Li <xiaoyun.li@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n doc/guides/nics/features/gve.ini | 1 +\n drivers/net/gve/gve_ethdev.c | 28 ++++++++++++++++++++++++++++\n 2 files changed, 29 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/gve.ini b/doc/guides/nics/features/gve.ini\nindex ae466ad677..d1703d8dab 100644\n--- a/doc/guides/nics/features/gve.ini\n+++ b/doc/guides/nics/features/gve.ini\n@@ -5,6 +5,7 @@\n ;\n [Features]\n Link status = Y\n+MTU update = Y\n Linux = Y\n x86-32 = Y\n x86-64 = Y\ndiff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c\nindex 34243c1672..554f58640d 100644\n--- a/drivers/net/gve/gve_ethdev.c\n+++ b/drivers/net/gve/gve_ethdev.c\n@@ -96,12 +96,40 @@ gve_dev_close(struct rte_eth_dev *dev)\n \treturn err;\n }\n \n+static int\n+gve_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n+{\n+\tstruct gve_priv *priv = dev->data->dev_private;\n+\tint err;\n+\n+\tif (mtu < RTE_ETHER_MIN_MTU || mtu > priv->max_mtu) {\n+\t\tPMD_DRV_LOG(ERR, \"MIN MTU is %u, MAX MTU is %u\",\n+\t\t\t RTE_ETHER_MIN_MTU, priv->max_mtu);\n+\t\treturn -EINVAL;\n+\t}\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+\terr = gve_adminq_set_mtu(priv, mtu);\n+\tif (err) {\n+\t\tPMD_DRV_LOG(ERR, \"Failed to set mtu as %u err = %d\", mtu, err);\n+\t\treturn err;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static const struct eth_dev_ops gve_eth_dev_ops = {\n \t.dev_configure = gve_dev_configure,\n \t.dev_start = gve_dev_start,\n \t.dev_stop = gve_dev_stop,\n \t.dev_close = gve_dev_close,\n \t.link_update = gve_link_update,\n+\t.mtu_set = gve_dev_mtu_set,\n };\n \n static void\n", "prefixes": [ "v7", "5/8" ] }{ "id": 118937, "url": "