Message ID | 1454016364-30985-19-git-send-email-troy.kisky@boundarydevices.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0E3FDBEEE5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 28 Jan 2016 21:52:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C5F820219 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 28 Jan 2016 21:52:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0A16202C8 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 28 Jan 2016 21:52:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOuTO-0004qW-0K; Thu, 28 Jan 2016 21:51:26 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOu7f-0005wY-Br for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 21:29:02 +0000 Received: by mail-pa0-x233.google.com with SMTP id uo6so29720503pac.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 28 Jan 2016 13:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jMtvrbJJCOiPCCxXPapobPOez6ZKuJEsSoNWScd/mgU=; b=FWe/PiFa17Lml1j+mRJbU9TKfPWYI2Q9VsiKE/lRe9ZmYeqTbXPgdR49rTgcJiBPHb zBejNFG11XoM9yaw2hRAqUdYnCV48c0BAFsWZrZt9vFHw6/DtHq8Gc+nH2PGtMALtBkP +qx8+s1ZBoWbCiKLzCZfGZjgC4rCe7kWuZoxV+g1x/E/plZT9loP6PeYq3klsLqMfuC/ rnOnbt69pElLgyXqKvQqFi6RvNcA94YdJvasWYvkeVTmMQQJHDBP2dlMfjc/vYkjXAks /Mb5dPbeLaqrf77FAmAfSO/lY571LREhOuG1RrbdswrH2FxsnuRfX6mRsteWlhhc2R3o +8sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jMtvrbJJCOiPCCxXPapobPOez6ZKuJEsSoNWScd/mgU=; b=efiDb+pn4tomdqkJbuYR99ztbRRXf6FPY2nTUgKhD/RftXCe1Pb9Om/xsTpv7Mwin3 IY1LOaIi6TWGD6Q98HetmxT/ayHzgVBA89KHbi5eq4aAngjnG6cipD1Gq78c0W2LDaAF TKDjVDt0hCeJp/9hwixm+aMSpmpdvWbK6qwMSmewGjTeXcR5W8buOSbg4n0L3hELMGyS jVuT6VZ6qWq29L3RIviWI7x/TvaNtenoc7nGrLrPVRQtqAnS134o5WS35yF6iqk66SFf VUB1p5ZcXuLHkUbysT10LsGzxBf15tTNX4o5Fa5Jx/YYHM2NS/ZkiQ3Z/B22toXMewpC XgQQ== X-Gm-Message-State: AG10YOSRf8WeiNd9HD1D75KCJz0pJ9liRxxCZQiIAWNLycdnA/W+DrB9pcOD1XP4ZD06hA== X-Received: by 10.67.3.134 with SMTP id bw6mr7910134pad.154.1454016518603; Thu, 28 Jan 2016 13:28:38 -0800 (PST) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id c90sm18583190pfd.31.2016.01.28.13.28.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 13:28:38 -0800 (PST) From: Troy Kisky <troy.kisky@boundarydevices.com> To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next 18/40] net: fec: clear cbd_sc after transmission to help with debugging Date: Thu, 28 Jan 2016 14:25:42 -0700 Message-Id: <1454016364-30985-19-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> References: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160128_132859_802687_AB12B099 X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: fabio.estevam@freescale.com, andrew@lunn.ch, linux@arm.linux.org.uk, Troy Kisky <troy.kisky@boundarydevices.com>, laci@boundarydevices.com, l.stach@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index fcbbf0d..1759705 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1161,6 +1161,7 @@ static void fec_txq(struct net_device *ndev, struct fec_enet_private *fep, } break; } + bdp->cbd_sc = (bdp == txq->bd.last) ? BD_SC_WRAP : 0; index = fec_enet_get_bd_index(bdp, &txq->bd);
When the tx queue is dumped, it is easier to see that this entry is idle. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> --- drivers/net/ethernet/freescale/fec_main.c | 1 + 1 file changed, 1 insertion(+)