Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755468AbbLGDcI (ORCPT ); Sun, 6 Dec 2015 22:32:08 -0500 Received: from smtprelay0134.hostedemail.com ([216.40.44.134]:47353 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755132AbbLGDcG (ORCPT ); Sun, 6 Dec 2015 22:32:06 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3872:4321:5007:6119:6261:6742:7576:7875:7901:7903:8603:10004:10400:10848:10967:11026:11232:11473:11658:11783:11914:12043:12296:12438:12517:12519:12740:13069:13311:13357:13894:14659:21080:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: dust14_11a90762a7124 X-Filterd-Recvd-Size: 1883 Message-ID: <1449459120.7356.14.camel@perches.com> Subject: Re: [PATCH net-next] net: hns: optimize XGE capability by reducing cpu usage From: Joe Perches To: David Miller , yankejian@huawei.com Cc: lisheng011@huawei.com, lipeng321@huawei.com, salil.mehta@huawei.com, huangdaode@hisilicon.com, xuwei5@hisilicon.com, liguozhu@huawei.com, haifeng.wei@huawei.com, yisen.zhuang@huawei.com, linuxarm@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 06 Dec 2015 19:32:00 -0800 In-Reply-To: <20151206.222929.804694720513782203.davem@davemloft.net> References: <1449300749-50275-1-git-send-email-yankejian@huawei.com> <20151206.222929.804694720513782203.davem@davemloft.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.2-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 27 On Sun, 2015-12-06 at 22:29 -0500, David Miller wrote: > From: yankejian > Date: Sat, 5 Dec 2015 15:32:29 +0800 > > > +#if (PAGE_SIZE < 8192) > > +?????if (hnae_buf_size(ring) == HNS_BUFFER_SIZE_2048) { > > +?????????????truesize = hnae_buf_size(ring); > > +?????} else { > > +?????????????truesize = ALIGN(size, L1_CACHE_BYTES); > > +?????????????last_offset = hnae_page_size(ring) - hnae_buf_size(ring); > > +?????} > > + > > +#else > > +?????????????truesize = ALIGN(size, L1_CACHE_BYTES); > > +?????????????last_offset = hnae_page_size(ring) - hnae_buf_size(ring); > > +#endif > > This is not indented properly, and it looks terrible. And it makes one curious as to why last_offset isn't set in the first block. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/