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


Groups > linux.kernel > #1658865

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

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH 16/18] staging: fsl-dpaa2/eth: Errors checking update
Date 2017-06-06 17:30 +0200
Message-ID <tPoAG-27S-15@gated-at.bofh.it> (permalink)
References <tPoAG-27S-17@gated-at.bofh.it> <tPoAG-27S-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 {

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web