Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751499AbdFFPYn (ORCPT ); Tue, 6 Jun 2017 11:24:43 -0400 Received: from smtprelay0138.hostedemail.com ([216.40.44.138]:35077 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751281AbdFFPYl (ORCPT ); Tue, 6 Jun 2017 11:24:41 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:2729:2828:2895:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:4225:4250:4321:5007:7903:10004:10400:10848:11026:11232:11473:11658:11914:12438:12555:12663:12740:12760:12895:12986:13069:13095:13138:13231:13311:13357:13439:14659:21080:21433:21450:21451:21627:30012:30046:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:6,LUA_SUMMARY:none X-HE-Tag: salt29_60dec6676df47 X-Filterd-Recvd-Size: 2115 Message-ID: <1496762664.1968.17.camel@perches.com> Subject: Re: [PATCH 16/18] staging: fsl-dpaa2/eth: Errors checking update From: Joe Perches To: Ioana Radulescu , gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, agraf@suse.de, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, bogdan.purcareata@nxp.com, stuyoder@gmail.com, laurentiu.tudor@nxp.com, Bharat.Bhushan@nxp.com Date: Tue, 06 Jun 2017 08:24:24 -0700 In-Reply-To: <20170606150041.10955-17-ruxandra.radulescu@nxp.com> References: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> <20170606150041.10955-17-ruxandra.radulescu@nxp.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 27 On Tue, 2017-06-06 at 10:00 -0500, Ioana Radulescu wrote: > On the egress path, frame errors are reported using both a FD control > field and the frame annotation status. The current code only handles > FAS errors. Update to look at both fields when accounting Tx errors. [] > Note: Checkpatch complains about a macro(DPAA2_FAS_RX_ERR_MASK) being > too complex. It's just a bitmask with all possible Rx FAS error bits > and I'm not sure how the extra parantheses recommended by checkpatch > would help, so leaving it as is. Ignoring the checkpatch message is the right thing to do. It's just a false positive caused by the incomplete context around the macro definition. > @@ -177,7 +190,7 @@ struct dpaa2_fas { > /* L4 csum error */ > #define DPAA2_FAS_L4CE 0x00000001 > /* Possible errors on the ingress path */ > -#define DPAA2_ETH_RX_ERR_MASK (DPAA2_FAS_KSE | \ > +#define DPAA2_FAS_RX_ERR_MASK (DPAA2_FAS_KSE | \ > DPAA2_FAS_EOFHE | \ > DPAA2_FAS_MNLE | \ > DPAA2_FAS_TIDE | \ > @@ -191,7 +204,7 @@ struct dpaa2_fas {