From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mody, Rasesh" Subject: Re: [PATCH v2 61/61] net/qede: add LRO/TSO offloads support Date: Sat, 25 Mar 2017 06:28:02 +0000 Message-ID: References: <162b5be7-d8a5-0e89-a32f-b1a992aef2a3@intel.com> <1489820786-14226-62-git-send-email-rasesh.mody@cavium.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: Harish Patil , Dept-Eng DPDK Dev To: Ferruh Yigit , "dev@dpdk.org" Return-path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0056.outbound.protection.outlook.com [104.47.40.56]) by dpdk.org (Postfix) with ESMTP id 449CDF8AA for ; Sat, 25 Mar 2017 07:28:04 +0100 (CET) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > From: Ferruh Yigit [mailto:ferruh.yigit@intel.com] > Sent: Friday, March 24, 2017 4:59 AM >=20 > On 3/18/2017 7:06 AM, Rasesh Mody wrote: > > From: Harish Patil > > > > This patch includes slowpath configuration and fastpath changes to > > support LRO and TSO. A bit of revamping is needed in order to make use > > of existing packet classification schemes in Rx fastpath and for SG > > element processing in Tx. > > > > Signed-off-by: Harish Patil >=20 > This patch is giving following checkpatch errors [1], I can see the reaso= n of > the multiline dereference is to fit into 80 column line limit, and those = lines are > not easy to escape from line limit. >=20 > But eventually if we get a checkpatch warning, I prefer it to be from lon= g line, > multiline dereference makes code harder to read. >=20 > What do you think? Will try to address this more efficiently. =20 >=20 >=20 > [1] > WARNING:MULTILINE_DEREFERENCE: Avoid multiple line dereference - > prefer 'cqe_start_tpa->len_on_first_bd' > #450: FILE: drivers/net/qede/qede_rxtx.c:1045: > + rte_le_to_cpu_16(cqe_start_tpa-> > + len_on_first_bd), >=20 > WARNING:MULTILINE_DEREFERENCE: Avoid multiple line dereference - > prefer 'cqe_start_tpa->ext_bd_len_list[0]' > #453: FILE: drivers/net/qede/qede_rxtx.c:1048: > + rte_le_to_cpu_16(cqe_start_tpa-> > + > + ext_bd_len_list[0]), >=20 > WARNING:MULTILINE_DEREFERENCE: Avoid multiple line dereference - > prefer 'rxq->tpa_info[cqe->fast_path_tpa_end.tpa_agg_index].mbuf' > #465: FILE: drivers/net/qede/qede_rxtx.c:1060: > + rx_mb =3D rxq-> > + > + tpa_info[cqe->fast_path_tpa_end.tpa_agg_index].mbuf; >=20 > WARNING:MULTILINE_DEREFERENCE: Avoid multiple line dereference - > prefer 'cqe_start_tpa->pars_flags.flags' > #512: FILE: drivers/net/qede/qede_rxtx.c:1087: > + parse_flag =3D rte_le_to_cpu_16(cqe_start_tpa-> > + > + pars_flags.flags); >=20 > WARNING:MULTILINE_DEREFERENCE: Avoid multiple line dereference - > prefer 'cqe_start_tpa->tunnel_pars_flags.flags' > #541: FILE: drivers/net/qede/qede_rxtx.c:1108: > + tunn_parse_flag =3D > + cqe_start_tpa-> > + > tunnel_pars_flags.flags; >=20 > WARNING:MULTILINE_DEREFERENCE: Avoid multiple line dereference - > prefer 'fp_cqe->tunnel_pars_flags.flags' > #544: FILE: drivers/net/qede/qede_rxtx.c:1111: > + tunn_parse_flag =3D fp_cqe-> > + > tunnel_pars_flags.flags; >=20 >=20 > <...>