Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp344182rdb; Thu, 24 Aug 2023 07:48:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+i/1E4lIyd8n2CrOG3WO0GrzFMu7yVMkJ3DuPaYR5EjmAvSmlq3bGCbSExklFh1JJCytd X-Received: by 2002:a17:906:7485:b0:9a1:c44d:7056 with SMTP id e5-20020a170906748500b009a1c44d7056mr6157559ejl.26.1692888511951; Thu, 24 Aug 2023 07:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692888511; cv=none; d=google.com; s=arc-20160816; b=iA9XvLFTbdVLHUzeumDXUTv78zoXd6Lm9IZFyYzj5H4XvZau1iQhtJY9hNNo3k6oG9 ztNN6dFOXXdIGcXI2A2PwJYsReAidtImQ0l7Of5aTRh58FQmCyhwh6Eohoxf5CaytP0N q4bwT4e65QYUBRdRjQK7Wr8e/Vfxqxs7L6l/zg0xEJdFi0e45LkyJ9OtcRNL1DEQDNb2 VnPoz4QZ6gzI16ziIDhzPM5SmuxTL3uJzXG+gHroGSU+1ElmBscBdZ1ygrVrDxrWTErc z4DVPOpgF22EsjjY0zEBw4+unXQIQURfJwx4XmI/V06T/wpHKtmmIgKGxNXZJUjM9n6A u4sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Tu5Nn5PIeqAj2dFAcnTQ3zHasjbQljMgZF7EFb0uMNs=; fh=lMCpfyPPaXrHDwwt1STmanwQdkpjAiBc9lipofF+qes=; b=B6C83ZeyoCuAPrGZ84CyxixkPGHwi436EExuWSfSf537kCwX/Zo+qMuRX76H0z7Cv5 ncxCIQAnnsX0Xk8BbQ8MGZvTeCeGsrG3EvuHx81/gieSjqcAGZ3FZ5mCrfrQvrXahBnM kS2R8Ai59y/9z34Aay0rHzJwfYE99fXkPppApb/VNQagTpA7xTzQK38l1ZfJyZY3r//Y 8Ixn6FiGtFlrPMPa7Tm9FvJGCfiY4KqEdG88slY4OPLG0tSBcn3AU5ry/u+mzlyanNYE 5MM+xEvu0JmEhOzqyXkJR1/pI1w9G1iio65/bJIsQVGcmGjuqUQ0BXM7ZjUNYEBqBwrX 0MEA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a17090652cd00b0098d7e44a637si10554549ejn.794.2023.08.24.07.48.06; Thu, 24 Aug 2023 07:48:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237231AbjHXNC7 (ORCPT + 99 others); Thu, 24 Aug 2023 09:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238145AbjHXNCg (ORCPT ); Thu, 24 Aug 2023 09:02:36 -0400 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 707DC1987 for ; Thu, 24 Aug 2023 06:02:34 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-74-lZCG3vAwOQyzvKQ69jrznQ-1; Thu, 24 Aug 2023 09:02:30 -0400 X-MC-Unique: lZCG3vAwOQyzvKQ69jrznQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 897078D40A2; Thu, 24 Aug 2023 13:02:29 +0000 (UTC) Received: from hog (unknown [10.39.192.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C42F140E962; Thu, 24 Aug 2023 13:02:28 +0000 (UTC) Date: Thu, 24 Aug 2023 15:02:27 +0200 From: Sabrina Dubroca To: Jakub Kicinski Cc: linux@weissschuh.net, "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Marko Subject: Re: [PATCH net-next] net: generalize calculation of skb extensions length Message-ID: References: <20230822-skb_ext-simplify-v1-1-9dd047340ab5@weissschuh.net> <20230822184644.18966d0f@kernel.org> <1e1dde74-edc6-4306-9b1b-0a1b5a658b67@weissschuh.net> <20230823075318.4860cebc@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230823075318.4860cebc@kernel.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 2023-08-23, 07:53:18 -0700, Jakub Kicinski wrote: > On Wed, 23 Aug 2023 10:14:48 +0200 (GMT+02:00) linux@weissschuh.net > wrote: > > > Could you include more info about the compiler versions you tried > > > and maybe some objdump? We'll have to take your word for it getting > > > optimized out, would be great if we had more proof in the commit msg. > > > -- > > > pw-bot: cr > > > > Thanks for the feedback. > > I'll send a v2 with more background soon. > > > > On the other hand this function is only ever > > executed once, so even if it is slightly inefficient > > it shouldn't matter. > > Oh you're right, somehow I thought it was for every alloc. > You can mention it's only run at init in the commit msg if > that's easier. We could also add __init annotations to skb_ext_total_length and skb_extensions_init to make that clearer. -- Sabrina