Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1106990/?format=api
{ "id": 1106990, "url": "http://patchwork.ozlabs.org/api/patches/1106990/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1559044682-23446-1-git-send-email-92siuyang@gmail.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1559044682-23446-1-git-send-email-92siuyang@gmail.com>", "list_archive_url": null, "date": "2019-05-28T11:58:02", "name": "ixgbevf: fix possible divide by zero in ixgbevf_update_itr", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "390ca5c9f773b710a3cd4ad0c405197b7bdddb70", "submitter": { "id": 76415, "url": "http://patchwork.ozlabs.org/api/people/76415/?format=api", "name": "Young Xiao", "email": "92siuyang@gmail.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1559044682-23446-1-git-send-email-92siuyang@gmail.com/mbox/", "series": [ { "id": 110556, "url": "http://patchwork.ozlabs.org/api/series/110556/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=110556", "date": "2019-05-28T11:58:02", "name": "ixgbevf: fix possible divide by zero in ixgbevf_update_itr", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/110556/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1106990/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1106990/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=gmail.com", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"droyNunc\"; dkim-atps=neutral" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 45DQ0n6qNjz9sB8\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 29 May 2019 19:10:33 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 067A286BC4;\n\tWed, 29 May 2019 09:10:32 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7NYvkS5bMHDI; Wed, 29 May 2019 09:10:30 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 95569860F9;\n\tWed, 29 May 2019 09:10:30 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id BAAB21BF964\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 28 May 2019 11:56:59 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B641284B91\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 28 May 2019 11:56:59 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Km99rv2P2yN4 for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 28 May 2019 11:56:59 +0000 (UTC)", "from mail-pg1-f194.google.com (mail-pg1-f194.google.com\n\t[209.85.215.194])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 370BF84B08\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 28 May 2019 11:56:59 +0000 (UTC)", "by mail-pg1-f194.google.com with SMTP id t1so10868970pgc.2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 28 May 2019 04:56:59 -0700 (PDT)", "from xy-data.openstacklocal\n\t(ecs-159-138-22-150.compute.hwclouds-dns.com. [159.138.22.150])\n\tby smtp.gmail.com with ESMTPSA id\n\tr1sm16272313pfg.65.2019.05.28.04.56.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 28 May 2019 04:56:57 -0700 (PDT)" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=Y0nU1mnDjk5DEaEAqhn6A+e5w54A9UaAagHSxcoB+rI=;\n\tb=droyNuncHFCAXk2oz9b91V/DwkejmqPm50x4ZBfqch9PSfHoEpw76fBWY+hcNLkPNG\n\tcAs+EV160TX6U78yQ58egeBfws+a5Kl9Vi73WP8uPWje0+UdOI6CSy2I3oK4zn9m5OSm\n\trp0CnbvZF13HQwXk6gfgGlzeSh0pPuBWAAV3SNBT+5GvDKiWKgcqdt4Hz5LnSSLoyozn\n\tOW+7OptgTqrxMQwKxrGvbDY3I21Ni6H4sSgK3k/aQj8atL5WEPs2ssJntXR7Dzo+klVf\n\tY6u8YfVBM2PbMjmlw19zeQgjjs1qsSUV3vjPyGFZqmt0zX/WNp+EuY+je7xDsFPoAcfc\n\t1YpQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=Y0nU1mnDjk5DEaEAqhn6A+e5w54A9UaAagHSxcoB+rI=;\n\tb=k8gQAkv9kLKp9P79hNDZtRRp+AsaUAA0S4KrjFk5Q8LopYMmwe2JBgbfJberZ+mmze\n\t7DfWmnVrI/dGA3tYEICBsMbL+YbV2/jncXTX4n6LwnlkLnxtsKHkV5RpHHeusXk9LxIF\n\tR75V3qpqG6ogziAtBm1/WmDYFYf1lzWGcPzi3214ZXe6RqARvV4wenMPCAfu34/Pzt5z\n\tT9tQvLQmVgoS+ymzVTKJJvBfKY9SYECC3r0UTyN1WbnaagPtYMhSi3+LSGmFro3QWNt7\n\tyLqKxfyHQzLEXFSiPfZVCjWvu2V4AabONxA6FflfTHYyyoqXhoXZEEknI0K+evTUeP1k\n\tTJVw==", "X-Gm-Message-State": "APjAAAWevbOoJpUqS1WEwJy4//BwZUdAdzanA25smegq6GwsjgFnI7r+\n\tIY+oC+XNzbs130J7oGxhbx4=", "X-Google-Smtp-Source": "APXvYqx3Up2B1eZPaaTAWMBFlw4GilIcCB4OB4SrH4CoVtGbovwboWob5c34WdwFXy9KG22xN4xmnw==", "X-Received": "by 2002:a17:90a:9602:: with SMTP id\n\tv2mr5467175pjo.59.1559044618864; \n\tTue, 28 May 2019 04:56:58 -0700 (PDT)", "From": "Young Xiao <92siuyang@gmail.com>", "To": "jeffrey.t.kirsher@intel.com, davem@davemloft.net,\n\tintel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Date": "Tue, 28 May 2019 19:58:02 +0800", "Message-Id": "<1559044682-23446-1-git-send-email-92siuyang@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "X-Mailman-Approved-At": "Wed, 29 May 2019 09:10:29 +0000", "Subject": "[Intel-wired-lan] [PATCH] ixgbevf: fix possible divide by zero in\n\tixgbevf_update_itr", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Cc": "Young Xiao <92siuyang@gmail.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "The next call to ixgbevf_update_itr will continue to dynamically\nupdate ITR.\n\nCopy from commit bdbeefe8ea8c (\"ixgbe: fix possible divide by zero in\nixgbe_update_itr\")\n\nSigned-off-by: Young Xiao <92siuyang@gmail.com>\n---\n drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\nindex d189ed2..d2b41f9 100644\n--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\n+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\n@@ -1423,6 +1423,9 @@ static void ixgbevf_update_itr(struct ixgbevf_q_vector *q_vector,\n \t */\n \t/* what was last interrupt timeslice? */\n \ttimepassed_us = q_vector->itr >> 2;\n+\tif (timepassed_us == 0)\n+\t\treturn;\n+\n \tbytes_perint = bytes / timepassed_us; /* bytes/usec */\n \n \tswitch (itr_setting) {\n", "prefixes": [] }