Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85652/?format=api
https://patches.dpdk.org/api/patches/85652/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201222085149.848142-1-andrew.rybchenko@oktetlabs.ru/", "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": "<20201222085149.848142-1-andrew.rybchenko@oktetlabs.ru>", "list_archive_url": "https://inbox.dpdk.org/dev/20201222085149.848142-1-andrew.rybchenko@oktetlabs.ru", "date": "2020-12-22T08:51:49", "name": "net/failsafe: report minimum and maximum MTU in device info", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "7fbfbc895b245dd267899e16ba2d6b8f2aa426a3", "submitter": { "id": 2013, "url": "https://patches.dpdk.org/api/people/2013/?format=api", "name": "Andrew Rybchenko", "email": "Andrew.Rybchenko@oktetlabs.ru" }, "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/20201222085149.848142-1-andrew.rybchenko@oktetlabs.ru/mbox/", "series": [ { "id": 14423, "url": "https://patches.dpdk.org/api/series/14423/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14423", "date": "2020-12-22T08:51:49", "name": "net/failsafe: report minimum and maximum MTU in device info", "version": 1, "mbox": "https://patches.dpdk.org/series/14423/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85652/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/85652/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3A4ECA052A;\n\tTue, 22 Dec 2020 09:52:10 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 66921CAC0;\n\tTue, 22 Dec 2020 09:52:07 +0100 (CET)", "from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113])\n by dpdk.org (Postfix) with ESMTP id 0D329CA8F;\n Tue, 22 Dec 2020 09:52:05 +0100 (CET)", "by shelob.oktetlabs.ru (Postfix, from userid 122)\n id CDD3E7F5A8; Tue, 22 Dec 2020 11:52:03 +0300 (MSK)", "from aros.oktetlabs.ru (aros.oktetlabs.ru [192.168.38.17])\n by shelob.oktetlabs.ru (Postfix) with ESMTP id 59C227F4CA;\n Tue, 22 Dec 2020 11:52:00 +0300 (MSK)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on shelob.oktetlabs.ru", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.8 required=5.0 tests=ALL_TRUSTED, DKIM_ADSP_DISCARD\n autolearn=no autolearn_force=no version=3.4.2", "DKIM-Filter": "OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 59C227F4CA", "Authentication-Results": "shelob.oktetlabs.ru/59C227F4CA; dkim=none;\n dkim-atps=neutral", "From": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>", "To": "dev@dpdk.org", "Cc": "stable@dpdk.org, Gaetan Rivet <grive@u256.net>,\n Andrew Rybchenko <arybchenko@solarflare.com>,\n Ian Stokes <ian.stokes@intel.com>,\n Stephen Hemminger <stephen@networkplumber.org>,\n Ferruh Yigit <ferruh.yigit@intel.com>", "Date": "Tue, 22 Dec 2020 11:51:49 +0300", "Message-Id": "<20201222085149.848142-1-andrew.rybchenko@oktetlabs.ru>", "X-Mailer": "git-send-email 2.29.2", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] net/failsafe: report minimum and maximum MTU in\n\tdevice info", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Take minimum and maximum MTU values for subdevices and\nreport maximum of minimums and minimum of maximums.\n\nFixes: ad97ceece12c (\"ethdev: add min/max MTU to device info\")\nCc: stable@dpdk.org\n\nSigned-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\n---\n drivers/net/failsafe/failsafe_ops.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c\nindex 76d64871b4..5e6fb369e1 100644\n--- a/drivers/net/failsafe/failsafe_ops.c\n+++ b/drivers/net/failsafe/failsafe_ops.c\n@@ -1095,6 +1095,8 @@ static void\n fs_dev_merge_info(struct rte_eth_dev_info *info,\n \t\t const struct rte_eth_dev_info *sinfo)\n {\n+\tinfo->min_mtu = RTE_MAX(info->min_mtu, sinfo->min_mtu);\n+\tinfo->max_mtu = RTE_MIN(info->max_mtu, sinfo->max_mtu);\n \tinfo->max_rx_pktlen = RTE_MIN(info->max_rx_pktlen, sinfo->max_rx_pktlen);\n \tinfo->max_rx_queues = RTE_MIN(info->max_rx_queues, sinfo->max_rx_queues);\n \tinfo->max_tx_queues = RTE_MIN(info->max_tx_queues, sinfo->max_tx_queues);\n@@ -1172,6 +1174,8 @@ fs_dev_infos_get(struct rte_eth_dev *dev,\n \tint ret;\n \n \t/* Use maximum upper bounds by default */\n+\tinfos->min_mtu = RTE_ETHER_MIN_MTU;\n+\tinfos->max_mtu = UINT16_MAX;\n \tinfos->max_rx_pktlen = UINT32_MAX;\n \tinfos->max_rx_queues = RTE_MAX_QUEUES_PER_PORT;\n \tinfos->max_tx_queues = RTE_MAX_QUEUES_PER_PORT;\n", "prefixes": [] }{ "id": 85652, "url": "