Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/547707/?format=api
{ "id": 547707, "url": "http://patchwork.ozlabs.org/api/patches/547707/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20151123183051.17677.32713.stgit@lin-nd1-054.jf.intel.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": "<20151123183051.17677.32713.stgit@lin-nd1-054.jf.intel.com>", "list_archive_url": null, "date": "2015-11-23T18:30:51", "name": "ixgbe: Fill at least min credits to a TC credit refills", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "9fce09bd029574dbfdbbbbda86ed89eaa2907a2b", "submitter": { "id": 10688, "url": "http://patchwork.ozlabs.org/api/people/10688/?format=api", "name": "Vasu Dev", "email": "vasu.dev@intel.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/20151123183051.17677.32713.stgit@lin-nd1-054.jf.intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/547707/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/547707/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.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" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ozlabs.org (Postfix) with ESMTP id 57B9E1402C4\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 24 Nov 2015 05:30:59 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 626E792A09;\n\tMon, 23 Nov 2015 18:30:58 +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 IloHuo6sAXQc; Mon, 23 Nov 2015 18:30:57 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id DC9F7929F4;\n\tMon, 23 Nov 2015 18:30:57 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 3DC5D1C11D2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Nov 2015 18:30:57 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3154EA5D97\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Nov 2015 18:30:57 +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 TJsQnq3LNxtt for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Nov 2015 18:30:56 +0000 (UTC)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 334DDA5D95\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Nov 2015 18:30:56 +0000 (UTC)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga101.fm.intel.com with ESMTP; 23 Nov 2015 10:30:55 -0800", "from lin-nd1-054.jf.intel.com ([10.166.48.54])\n\tby fmsmga001.fm.intel.com with ESMTP; 23 Nov 2015 10:30:51 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,338,1444719600\"; d=\"scan'208\";a=\"845482984\"", "From": "Vasu Dev <vasu.dev@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 23 Nov 2015 10:30:51 -0800", "Message-ID": "<20151123183051.17677.32713.stgit@lin-nd1-054.jf.intel.com>", "User-Agent": "StGIT/0.14.3", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH] ixgbe: Fill at least min credits to a TC\n\tcredit refills", "X-BeenThere": "intel-wired-lan@lists.osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "Currently credit_refill and credit_max could be zero for a TC and that\nis causing Tx hang for CEE mode configuration, so to fix that have at\nmin credit assigned to a TC and that is as what IEEE mode already does.\n\nSigned-off-by: Vasu Dev <vasu.dev@intel.com>\nChange-ID: If652c133093a21e530f4e9eab09097976f57fb12\n---\n\n drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | 7 ++++++-\n 1 files changed, 6 insertions(+), 1 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c\nindex a507a6f..02c7333 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c\n@@ -139,6 +139,11 @@ s32 ixgbe_dcb_calculate_tc_credits(struct ixgbe_hw *hw,\n \t\t/* Calculate credit refill ratio using multiplier */\n \t\tcredit_refill = min(link_percentage * min_multiplier,\n \t\t\t\t MAX_CREDIT_REFILL);\n+\n+\t\t/* Refill at least minimum credit */\n+\t\tif (credit_refill < min_credit)\n+\t\t\tcredit_refill = min_credit;\n+\n \t\tp->data_credits_refill = (u16)credit_refill;\n \n \t\t/* Calculate maximum credit for the TC */\n@@ -149,7 +154,7 @@ s32 ixgbe_dcb_calculate_tc_credits(struct ixgbe_hw *hw,\n \t\t * of a TC is too small, the maximum credit may not be\n \t\t * enough to send out a jumbo frame in data plane arbitration.\n \t\t */\n-\t\tif (credit_max && (credit_max < min_credit))\n+\t\tif (credit_max < min_credit)\n \t\t\tcredit_max = min_credit;\n \n \t\tif (direction == DCB_TX_CONFIG) {\n", "prefixes": [] }