Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1658865 > unrolled thread

Re: [PATCH 16/18] staging: fsl-dpaa2/eth: Errors checking update

Started byJoe Perches <joe@perches.com>
First post2017-06-06 17:30 +0200
Last post2017-06-06 17:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 16/18] staging: fsl-dpaa2/eth: Errors checking update Joe Perches <joe@perches.com> - 2017-06-06 17:30 +0200

#1658865 — Re: [PATCH 16/18] staging: fsl-dpaa2/eth: Errors checking update

FromJoe Perches <joe@perches.com>
Date2017-06-06 17:30 +0200
SubjectRe: [PATCH 16/18] staging: fsl-dpaa2/eth: Errors checking update
Message-ID<tPoAG-27S-15@gated-at.bofh.it>
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 {

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web