Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4232842rwd; Tue, 30 May 2023 02:19:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6J43TG9YFgLC7reB5ZZokzz27XXV0fPsyL+fcRA4+MAmsZLkXZHnXDCm3cMmPORj8izQrW X-Received: by 2002:a17:90b:147:b0:24e:3b3e:f348 with SMTP id em7-20020a17090b014700b0024e3b3ef348mr1880358pjb.2.1685438388095; Tue, 30 May 2023 02:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685438388; cv=none; d=google.com; s=arc-20160816; b=Deu68gt5v8jxjQSsNDqKpGAd9+CmHDvrjSQEX37Mt73h58Izp9ztEwt/TwjV7SsBz8 lIneKS1mDpcBvlJUFppZ1vgg0tKMmjqSWuSJ0gTTaiHw0DhDSdA5YIqwtSs+wnudg7eD Rq3FpsIejnivzqtA9s6b13fZZPs3u/TNddXUtRmYwmjhu1KIdJ70eHgBPhqmF/OmlX4l mBVh4y6fpzCeB0fXJ+CVAwPGgYlTxYXu0sxtAKoRLqUeILZG8Js4xPaXO2MsTTX1ksQS R2WRxKfZE4iPv8TOY02EKL/rxwuaHek5gs8oULg4V0BDslSNpRNk6+FQLAUdA0MXUQVN UePg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=+K9qqBdPhNx6fydnwx/NplM3J05bkqxoAoD0UawR44o=; b=enSXDltmsfTTfEONWJXQ97u7IUQo/9zQVFg/5j1uOOQC/pZGdQnCJysoiDAKGLLKaX WeYGbxyQyy3H9iJKBXYjf3ZitYEsn0U4pPwj/YIMjqcTVlWO73k4Sr/8qxgu80kDoEUg gSw0qlFpnKsNUDrFExQeEnuMZAnmBYdNSkLNgsb0ucvxu08XJSHBglsSxBrKdNwTVncm EBtnH4w9dtnB90I688Fi+5agjp85nZVjiG+r8Xs0stlwx9JOFHzoZXPIRWw+nK7tqz7Y bTObOkBMf7a8vXQ9n7ifFBakiQtj/veIBLePCCpooSjcQAmhygkhYipabOiP0XBWeEfb reHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=WTLIKpKL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg7-20020a17090b0d8700b002537224e05esi4674610pjb.62.2023.05.30.02.19.33; Tue, 30 May 2023 02:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=WTLIKpKL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=web.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbjE3JKl (ORCPT + 99 others); Tue, 30 May 2023 05:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbjE3JKj (ORCPT ); Tue, 30 May 2023 05:10:39 -0400 Received: from mout.web.de (mout.web.de [212.227.15.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE47EE5; Tue, 30 May 2023 02:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1685437821; x=1686042621; i=spasswolf@web.de; bh=RowAy7vfc/W3m5IXjtWxalCBrofshNZILX1ZCuc28iM=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=WTLIKpKLSF6HBEcWMPD/howHFNhRFg2N9g0FVHpkAP60F3c4LKKKVGZfPXOJBz7QHND68Xr OuilMeMOiQ3yFk5ewlEzMnNbV0O0Jhe6Z8mC1K+DeObK+tanlL0s5LDtabeV3ZhwXwk+xkT51 87xmX89e4g6oORLAqqCrGtCtHT129kFobEdvx55poaaZaroP9ONow6fEXk21n8jlWtMjq4H9Q Kj0dnX+DAvypcVvdR8XwfVDn2d9cH84rP7bZIajm6g8fHOC8iaPY2yc1b1usatFZvVEV312tg YDfp8N+phtJGW/44ubZZ7vWxjvy+N/l9zE4t21DApmSyBnv7A/GA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.0.101] ([176.198.191.160]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MwjK2-1qJmUR0vve-00yU3R; Tue, 30 May 2023 11:10:21 +0200 Message-ID: <2b91165f667d3896a0aded39830905f62f725815.camel@web.de> Subject: Re: [PATCH net] net: ipa: Use the correct value for IPA_STATUS_SIZE From: Bert Karwatzki To: Simon Horman Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , elder@linaro.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 30 May 2023 11:10:19 +0200 In-Reply-To: References: <7ae8af63b1254ab51d45c870e7942f0e3dc15b1e.camel@web.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Provags-ID: V03:K1:vAmbHNn5RUg4uxRCEOhxAucgIJLGHr907DRoQKnjt00SX6NhbDS FRe2n3RtxZuM4uu65KLNjp7aOJDGwZx8VscLdai7cEgeGF7RxAqS8+EuDbllIbp2y0Xr3dp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u17YTHvyYYBeW4CoDqeC59bwhoJU2jW X1RwCrFq0w53lEizlhNJ/CqOYbw= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, dem 30.05.2023 um 09:09 +0200 schrieb Simon Horman: > On Sat, May 27, 2023 at 10:46:25PM +0200, Bert Karwatzki wrote: > > commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c introduced > > IPA_STATUS_SIZE as a replacement for the size of the removed struct > > ipa_status. sizeof(struct ipa_status) was sizeof(__le32[8]), use this > > as IPA_STATUS_SIZE. > >=20 > > > From 0623148733819bb5d3648b1ed404d57c8b6b31d8 Mon Sep 17 00:00:00 200= 1 > > From: Bert Karwatzki > > Date: Sat, 27 May 2023 22:16:52 +0200 > > Subject: [PATCH] Use the correct value for IPA_STATUS_SIZE. > > IPA_STATUS_SIZE > > =C2=A0was introduced in commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c= as a > > =C2=A0replacment for the size of the removed struct ipa_status which ha= d > > size =3D > > =C2=A0sizeof(__le32[8]). > >=20 > > Signed-off-by: Bert Karwatzki >=20 > Hi Bert, >=20 > As well as the feedback provided by Jakub elsewhere in this > thread I think it would be useful to CC the author of the above mentioned > commit, Alex Elder . I have CCed him on this email. > Please consider doing likewise when you post v2. >=20 > FWIIW, I did take a look. > And I do agree with your maths: struct ipa_status was 32 (=3D 8 x 4) byte= s long. >=20 > > --- > > =C2=A0drivers/net/ipa/ipa_endpoint.c | 2 +- > > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/drivers/net/ipa/ipa_endpoint.c > > b/drivers/net/ipa/ipa_endpoint.c > > index 2ee80ed140b7..afa1d56d9095 100644 > > --- a/drivers/net/ipa/ipa_endpoint.c > > +++ b/drivers/net/ipa/ipa_endpoint.c > > @@ -119,7 +119,7 @@ enum ipa_status_field_id { > > =C2=A0}; > > =C2=A0 > > =C2=A0/* Size in bytes of an IPA packet status structure */ > > -#define IPA_STATUS_SIZE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0sizeof(__le32[4]) > > +#define IPA_STATUS_SIZE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0sizeof(__le32[8]) > > =C2=A0 > > =C2=A0/* IPA status structure decoder; looks up field values for a stru= cture > > */ > > =C2=A0static u32 ipa_status_extract(struct ipa *ipa, const void *data, > > --=20 > > 2.40.1 > >=20 > > Bert Karwatzki Here is v2 of the patch, the first one was garbled by the linebreak setting= of evolution. From: Bert Karwatzki Date: Tue, 30 May 2023 10:55:55 +0200 Subject: [PATCH] IPA_STATUS_SIZE was introduced in commit b8dc7d0eea5a as a replacement for the size of the removed struct ipa_status of size sizeof(__le32[8]). Use this value as IPA_STATUS_SIZE. Signed-off-by: Bert Karwatzki --- drivers/net/ipa/ipa_endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.= c index 2ee80ed140b7..afa1d56d9095 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -119,7 +119,7 @@ enum ipa_status_field_id { }; =20 /* Size in bytes of an IPA packet status structure */ -#define IPA_STATUS_SIZE sizeof(__le32[4]) +#define IPA_STATUS_SIZE sizeof(__le32[8]) =20 /* IPA status structure decoder; looks up field values for a structure */ static u32 ipa_status_extract(struct ipa *ipa, const void *data, --=20 2.40.1