Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/62212/?format=api
https://patches.dpdk.org/api/patches/62212/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20191030100400.3120-1-jiaqix.min@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": "<20191030100400.3120-1-jiaqix.min@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191030100400.3120-1-jiaqix.min@intel.com", "date": "2019-10-30T10:04:00", "name": "[v4] net/ice: fix setting max frame size", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b58c41d1c38cc5ef38683e1c533d17c883f6cd27", "submitter": { "id": 1374, "url": "https://patches.dpdk.org/api/people/1374/?format=api", "name": "Min, JiaqiX", "email": "jiaqix.min@intel.com" }, "delegate": { "id": 31221, "url": "https://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20191030100400.3120-1-jiaqix.min@intel.com/mbox/", "series": [ { "id": 7157, "url": "https://patches.dpdk.org/api/series/7157/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=7157", "date": "2019-10-30T10:04:00", "name": "[v4] net/ice: fix setting max frame size", "version": 4, "mbox": "https://patches.dpdk.org/series/7157/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/62212/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/62212/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 5AAE0A00BE;\n\tWed, 30 Oct 2019 11:09:14 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2D93B1BFDB;\n\tWed, 30 Oct 2019 11:09:14 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 822051BF9F;\n Wed, 30 Oct 2019 11:09:12 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 30 Oct 2019 03:09:11 -0700", "from intel.sh.intel.com ([10.239.255.32])\n by orsmga002.jf.intel.com with ESMTP; 30 Oct 2019 03:09:09 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.68,247,1569308400\"; d=\"scan'208\";a=\"212053611\"", "From": "Min JiaqiX <jiaqix.min@intel.com>", "To": "dev@dpdk.org", "Cc": "Min JiaqiX <jiaqix.min@intel.com>,\n\tstable@dpdk.org", "Date": "Wed, 30 Oct 2019 10:04:00 +0000", "Message-Id": "<20191030100400.3120-1-jiaqix.min@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20191029125431.16862-1-jiaqix.min@intel.com>", "References": "<20191029125431.16862-1-jiaqix.min@intel.com>", "Subject": "[dpdk-dev] [PATCH v4] net/ice: fix setting max frame size", "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": "Max frame size is not set to HW, so packets above the MTU\ndo not get dropped by HW. The patch fixed the issue.\n\nFixes: 50370662b727 (\"net/ice: support device and queue ops\")\nCc: stable@dpdk.org\n\nSigned-off-by: Min JiaqiX <jiaqix.min@intel.com>\n\n---\nv4:\n* Removed Reviewed-by\n* Checked and set defaut max frame size to HW in start ops.\nv3:\n* Changed Fixes line.\nv2:\n* Changed commit message.\n---\n drivers/net/ice/ice_ethdev.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)", "diff": "diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex d74675842..d8aa68f07 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -2724,6 +2724,16 @@ ice_dev_start(struct rte_eth_dev *dev)\n \n \tpf->adapter_stopped = false;\n \n+\t/* Set the max frame size to default value*/\n+\tif (pf->dev_data->dev_conf.rxmode.max_rx_pkt_len == 0) {\n+\t\tpf->dev_data->dev_conf.rxmode.max_rx_pkt_len =\n+\t\t\tRTE_ETHER_MAX_LEN;\n+\t}\n+\n+\t/* Set the max frame size to HW*/\n+\tice_aq_set_mac_cfg(hw,\n+\t\tpf->dev_data->dev_conf.rxmode.max_rx_pkt_len, NULL);\n+\n \treturn 0;\n \n \t/* stop the started queues if failed to start all queues */\n", "prefixes": [ "v4" ] }{ "id": 62212, "url": "