Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4155947rwb; Tue, 20 Sep 2022 09:33:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iLOu4MKB7U4W+Dre9YkgMLx4+CLCQ7+xenFY+inmzt1u9ZEjnOuaX9pVOnwl4QduxT74j X-Received: by 2002:a17:90b:194a:b0:202:e6eb:4b62 with SMTP id nk10-20020a17090b194a00b00202e6eb4b62mr4901529pjb.33.1663691605613; Tue, 20 Sep 2022 09:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663691605; cv=none; d=google.com; s=arc-20160816; b=q7At1ZIn3BlGaMAf/bqjU669YOl4f0TDLw7xScaI4kWcENvJAIA77BoiebMR3Tn7Jq 4EuzZQx2UZ5xeN8X/8mENbGqlSyY3KE9GMZ6q4IzUu4krl1UPVi1VqxY7yodYqsdcTyS BaNmiS0cXLbMPvOQW3bveJpk2ORhqCf2IvRzqLKXVXL4Fe5v+aJWJn59pqAh9Mc+MuhM ZxJfm9OwozsWpLkg6zI4UnHB38H72nkFIlywSMLqCzFUb1VqN5jPPC8d7UMSJwCE0McH 4XVSldi/5w2HzyawcxyUA2eo/P+WHy6roKnh7lY1bfsJh52JrzAlfIP2YU06rJU7ojIR UD3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JYo2UwsHnyRJ0cdkre+Ls0UO9p1NrvPYX66IenZob5I=; b=QKqKSD5ZREwRXnn4M3L9AIYybLo19wraE0Ot7T0Uzx4V6KjsaaE44vCMs52NdfZuDY /2EtTs3uncsVJmbY/RtB1rZ/qqfQKpKSfEGA89ldB16k1vhSM00hpIoYq8jIdibSJdpw WpHl0K7bLCWZkJwxBkYNdbTPo5MUVqX6nByLIajaltzK5kg+I8zfrWwLVZ4OuWdgEnsz qDJjxdqksl9LrYP5bSOkVYdc8k9mWpxedLj3wJd8dGvgakf1wIzqYa2YstrVCSmeDQpf yq+GgLf4YhacoODon+I+bM8ybFYbJYAabz5q7HBnx8yfw8g3biqG6PCdaGl9mms9efnu tPdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sfUM2bLL; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056a000b8c00b0052d7483e126si134417pfj.292.2022.09.20.09.33.12; Tue, 20 Sep 2022 09:33:25 -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=@linaro.org header.s=google header.b=sfUM2bLL; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbiITQSZ (ORCPT + 99 others); Tue, 20 Sep 2022 12:18:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231352AbiITQQX (ORCPT ); Tue, 20 Sep 2022 12:16:23 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ADB551A15 for ; Tue, 20 Sep 2022 09:16:22 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id s18so2058076qtx.6 for ; Tue, 20 Sep 2022 09:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=JYo2UwsHnyRJ0cdkre+Ls0UO9p1NrvPYX66IenZob5I=; b=sfUM2bLLsTrXEFWe4Km1gtjV8yC9yhiLVHf3NwfzfPCvcJEfVL1v+TeMkxTZpgPxIx a48/nUMeox1Kdt6oav5jj13IbSGER0P/LkZ+XHfg20waAdW7Appw85qppkVBZleNqkDI 5nNtcWA/lXZt5/uvA79E9jzQmq6Z9Ci0Uh3uoQrtEcYaIKDoZ2ly67CVRPR4gepsKi+T l3b+9N4Xwx68esHa5De4ly8xWpMTfZtLlww2Eado6GGnJ0ZDkeMagq5PMiyPUeBr+QKd t5wbgze695Kd+rrMtxKZVww7026tPijKRrMVVOy3BZUXkiN3EEG++QLZSqP9ta2Fd1z8 gF2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=JYo2UwsHnyRJ0cdkre+Ls0UO9p1NrvPYX66IenZob5I=; b=bkInCNDxz8Fq2wykdBXtpw3Oal5ydV/dExfuOqCMG0Hf7xp2FCZ+qVo06HflbAXhzv UCCPA5NpVrbsKmiMKKJmsZhxq9LZJsoo9eTMbE3OSYedu4gTBnhjAlejvukgiSRuk9qK +GMIPzvY2M8AJZUccijJ1m0MAXAo6FkpEJsryKULgFh9RCZk3Aj6lBPbiBwnvnx6/1th lnHyandeOyxT6huw5G7nzscwbFMfICdAfOmYJEYzVXnH1mmImIWy6x/m+2YDVRVSao41 HMAeyGfrl1/n3XfOb0778wDW/JuHnckTbiv8N3YxtIUk+rzHLUeTUvvXK53OLUgF7zEV 8IZQ== X-Gm-Message-State: ACrzQf3SNGZXM5lKkg3uNGad2J/ONkGj4kH+S9mtpkMwmIzSSCJSRGpI FiGuTYzTmYQ6ZiYy+gGS2H+C1g== X-Received: by 2002:a05:622a:110e:b0:35b:a6d3:96fd with SMTP id e14-20020a05622a110e00b0035ba6d396fdmr20282997qty.590.1663690581163; Tue, 20 Sep 2022 09:16:21 -0700 (PDT) Received: from [172.22.22.4] ([98.61.227.136]) by smtp.googlemail.com with ESMTPSA id s4-20020a05620a254400b006cf43968db6sm100510qko.76.2022.09.20.09.16.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 09:16:20 -0700 (PDT) Message-ID: <917abc36-ee08-6f1e-2bf5-a657b022c912@linaro.org> Date: Tue, 20 Sep 2022 11:16:18 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH net v2] net: ipa: properly limit modem routing table use Content-Language: en-US To: Jakub Kicinski Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, mka@chromium.org, evgreen@chromium.org, bjorn.andersson@linaro.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220913204602.1803004-1-elder@linaro.org> <20220920081400.0cbe44ff@kernel.org> From: Alex Elder In-Reply-To: <20220920081400.0cbe44ff@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 9/20/22 10:14 AM, Jakub Kicinski wrote: >> v2: Update the element info arrays defining the modified QMI message >> so it uses the ipa_mem_bounds_ei structure rather than the >> ipa_mem_array_ei structure. The message format is identical, >> but the code was incorrect without that change. > Unclear to me why, ipa_mem_bounds_ei and ipa_mem_array_ei seem > identical, other than s/end/count/. Overall the patch feels > a touch too verbose for a fix, makes it harder to grasp the key > functional change IMHO. I could be misunderstanding but please > keep the goal of making fixes small and crisp in mind for the future. I see you've already accepted the patch, and I appreciate that. The verbosity was because it was maybe a subtle difference and I failed to be more concise describing it. Over the wire, the ipa_mem_bounds and ipa_mem_array *look* identical (both are a pair of 32-bit unsigned values). But they are *semantically* different. The "array" is a base offset and number of entries. The "bounds" specifies the start and last offset (one less than the number of entries). So the type has changed to try to make the distinction clearer. I realize neither the compiler nor the QMI implementation will distinguish it, but the hope is that the human reader can derive some value from it. I don't want to be any more verbose, so I'll leave it at that. -Alex