From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 1/1 net-next] net: fec: enable pause frame to improve rx prefomance for 1G network Date: Wed, 16 Jan 2013 22:10:21 -0500 (EST) Message-ID: <20130116.221021.1688403542986325196.davem@davemloft.net> References: <1358153387-19275-1-git-send-email-Frank.Li@freescale.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Frank.Li@freescale.com, shawn.guo@linaro.org, B38611@freescale.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bhutchings@solarflare.com, s.hauer@pengutronix.de To: lznuaa@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:42877 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758756Ab3AQDKZ (ORCPT ); Wed, 16 Jan 2013 22:10:25 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Frank Li Date: Thu, 17 Jan 2013 10:50:36 +0800 > Any feedback about this patch? Well it's full of stylistic problems. >> + /* enable pause frame*/ >> + if ((fep->pause_flag & FEC_PAUSE_FLAG_ENABLE) || >> + ((fep->pause_flag & FEC_PAUSE_FLAG_AUTONEG) && >> + fep->phy_dev && fep->phy_dev->pause)) { This is mis-idented. >> + >> + rcntl |= FEC_ENET_FCE; That empty line before this assignment is spurious. >> + pause->rx_pause = pause->tx_pause; >> + >> +} That empty line is unnecessary, remove it. >> + /* default enable pause frame auto negotiation */ >> + if (pdev->id_entry && >> + (pdev->id_entry->driver_data & FEC_QUIRK_HAS_GBIT)) You can't possibly tell me that this indentation looks right to you. You must style things like this: if (condition1 && condition2) That is, you must line up the first character on the second and subsequent lines at the first column after the openning parenthesis of the first line.