From patchwork Thu Jan 28 21:25:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8154141 Return-Path: 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 7AFD2BEEE5 for ; Thu, 28 Jan 2016 21:38:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9CF962020F for ; Thu, 28 Jan 2016 21:38:07 +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 D0CDC2017D for ; Thu, 28 Jan 2016 21:38:06 +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 1aOuF9-0006kz-R6; Thu, 28 Jan 2016 21:36:43 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOu7u-00062t-Ja for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 21:29:15 +0000 Received: by mail-pf0-x231.google.com with SMTP id o185so25030235pfb.1 for ; Thu, 28 Jan 2016 13:28:54 -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=X5VHYkxyAkmOWG0WgzctnIT6EjqJegpeUL8hZbtB3Xc=; b=OOjpHtqGqjuF3SZrq1mpsMMo0YWpzj6JmLZTOr1s1aWfCROBDkfo4T122IY2hKZRYq 1xfWHvO/DBO64bn/gz9SJVEEiX0rqVFhZaPabSWQLCqTX0YYOrF6FF8tkNs/SMcGQTt1 cW6kUVAnsa3piwtlFE7sWsfoDKZVJWkrivNLsFqzHF0J+VURhOQHQiGXZOXFa8+nQGG7 P0C/C4n5h7eLN6UFwDGW5i3HUXu43afSPEdisoZiQA9RTr2r6fmGOlKOQPqwwfW05Txb eM7bO4bwkQ16z3GQy85P+taG+8AuAPhw3FwnolWvavCis4H/rRzAiOtD/8On3J0yCwd8 hUFg== 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=X5VHYkxyAkmOWG0WgzctnIT6EjqJegpeUL8hZbtB3Xc=; b=dRKTcPhtZbu3Lgdu6FiUl6Yap5UqlP1NRuVH6PQIyY7Yu/QXoPRXZ3+76gDf5lp7HX 4kLIADIpf8c/5S78ZYOTrrnf7Kuq1zw9n4k2Mn/82GL0b9iH7LOpAwLk1he1HKJyFcfQ Ch4SWKS+ycFdSK/jHf/GjmXgxeYUdllBx0h9p+BXdQ6HlbgdCrnoQ0qHyAhnh/N3yoRk SM+DTNT+JN1I32Gudrm9x0IsO7V2BUZ74++1fqDNIA4QHTy9NKxUxQMEz7FAH59yLz2m ZsgM69QdGABBy/KtEvBKLj7I/X1COtgn0bSrLfL0Q/E2koawREoBd/KQPsh+bqXCqbmw x8GA== X-Gm-Message-State: AG10YOSr4faRuzTC/RNw1wqtFINjjOpMq2EUbv3X4xx3sSULE8xyRzyaDv/PQEO5eUw6Pg== X-Received: by 10.98.74.9 with SMTP id x9mr8061581pfa.14.1454016534253; Thu, 28 Jan 2016 13:28:54 -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.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 13:28:53 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next 27/40] net: fec: enable interrupt on very last descriptor only Date: Thu, 28 Jan 2016 14:25:51 -0700 Message-Id: <1454016364-30985-28-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_132914_783166_B8B3232E X-CRM114-Status: GOOD ( 10.05 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@freescale.com, andrew@lunn.ch, linux@arm.linux.org.uk, Troy Kisky , laci@boundarydevices.com, l.stach@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" 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 Signed-off-by: Troy Kisky --- drivers/net/ethernet/freescale/fec_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index cf53e21..7258051 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -689,7 +689,8 @@ static int fec_enet_txq_submit_tso(struct fec_enet_priv_tx_q *txq, bdp, index, tso.data, size, size == data_left, - total_len == 0); + (total_len == 0) && + (size == data_left)); if (ret) goto err_release;