Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1028799pxb; Fri, 15 Apr 2022 18:53:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuEdql9JHOnfKLqvY5xC4PmWT9JlCU791bs91YmX8VwtXMxK76N9ppvwn2M+W1qPhmucYd X-Received: by 2002:a17:902:8e82:b0:151:777b:6d7 with SMTP id bg2-20020a1709028e8200b00151777b06d7mr1446660plb.172.1650074005603; Fri, 15 Apr 2022 18:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650074005; cv=none; d=google.com; s=arc-20160816; b=eU1UEOzpLakXRCzx8UA86hKD5uuvrwNfc3xBHdTEQcgNLwOaAmKpzuwD7K5ws1JCyt AeuP1HqL+LlD7wVKLIuDyrijlhq0QXN3IhBVMPtsgeXYk9HhVpi9HUcA+OSe63EM/Fnr L5sOD1x5ySh8hQwlKpY76KVLD1gxEbUKnW1zPUSsjAAjFT3K4trtGUWxG0qZ7f8oTKMq FQIwhqz5xsTRmaiU2WABxDOd4N7OecnCG2B3BEyOhXz9+bXkD02SX8dW0Lzgy4nksLL8 nNzUDbBvo7ca3xwPiiPJ52PLXP16wuuhqO8TkwPG7WfX6h2onNwCN+ZWjsgA9lS8M67N wr2g== 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:dkim-signature; bh=5zPCnkK90E2Oh6mxzRxHexOiUMKiXmsFDOzETkQOi4k=; b=sYy1PNS4ZtngzEVLbWpP5oDMGbGq2vJkOIinEH1UMbnctNHC5tDas7CGgKqK6f01ma wyAmVSrFWNKG2UewzVKjdK9rrJzbrCr6ZxCibMk+ba7GdxY9RKvfeFqdpcVZssOCbrRE iP9cdmwldH50et+pBU20L72F4vwBnqPuR6YX/vhk5soK+67jF7dCkOpW3UvKRYocjkYL ucwxTrvqdh5BnmXMcQ5D+vUajgI8djkpwguNkSV9thnuRog6gyuHMXKcJhINY04vbOYS Vyw/0CeCHCxpMr1HENQYzYvH7q+B3x5/ZPR53tJ0IPTihZwF1JYBZzOW6Q8PSAh4cvdx vMlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cdGUylni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t34-20020a634462000000b003816043f16dsi2861967pgk.866.2022.04.15.18.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:53:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cdGUylni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1CD93E9C9D; Fri, 15 Apr 2022 18:14:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350851AbiDOHDI (ORCPT + 99 others); Fri, 15 Apr 2022 03:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245147AbiDOHDD (ORCPT ); Fri, 15 Apr 2022 03:03:03 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F6003193B; Fri, 15 Apr 2022 00:00:36 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id b15so8987114edn.4; Fri, 15 Apr 2022 00:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5zPCnkK90E2Oh6mxzRxHexOiUMKiXmsFDOzETkQOi4k=; b=cdGUylniFInC4QsCc4NKF6/T8nwCjXOKZpl/+PKeOWE/uSXwBJehWX2QyzArD4Lpvn vKYcow0jenIAhL0kUdujm7xWFFzKIOn38Y+IOfZON/hl+eSZDEp94yt6/DMq0EOiyJ12 Ke2LKsNWS8nWH1WDuccIMvpGuhTxpAeP1MRUGMHDFzZiAqk4ZvPLkS2C+GTKQa+ShsRd F1Y1no0PKSLj8xaXBoj43QoiMdorSk2KaXW6WZ5vXFeoEz1ujeVt9ayVL+gfrzagCeGf cvwUjumFiyb9QH1Dn/h8bLQd6e82f5JUmG+o9bdiNxnQ7dnmkOv8pm2PsZLWBmZ8weU1 eJvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5zPCnkK90E2Oh6mxzRxHexOiUMKiXmsFDOzETkQOi4k=; b=5Mxw4y7mVINmxKSBRcytxYqYBQ6Bi/BKI0fUWsSqK5MFEWVLROO619la+vazWxa6Zs e8OME7JsIcYCkqcvHDq6cAHDInNlrAqLN4rpVn9uIXofdQLlsFS2nd5RiGEtkC5GA8i3 eXSPUQrhhWuO6jIxAm0TrWT7c0VaqRFzEtmkQ1AkKRbzj4xBMAMIKiwBGfSX7Ud9610D AjZCbyOs2or3rxmSYE6Z80kQFwkuomMo4tIf1X/gz5sm5ardRDC0KQDTPesA4dOQWe9i Nm7+QuM5im8PPRXbHNZepxtUVhtgApo8EHc0XvBE5sLpXzfXtIZwq/5YNwNg6jaSgsEX vo6g== X-Gm-Message-State: AOAM533SI2sfZ68KphXA1+Ds0GiElwN55R6UE2vpQWf5hOvWJk70xaFi tq9KB06xGiGrWeVQQxL1Drk= X-Received: by 2002:a50:d78e:0:b0:416:2cd7:7ac5 with SMTP id w14-20020a50d78e000000b004162cd77ac5mr6840206edi.320.1650006035060; Fri, 15 Apr 2022 00:00:35 -0700 (PDT) Received: from anparri (host-79-52-64-69.retail.telecomitalia.it. [79.52.64.69]) by smtp.gmail.com with ESMTPSA id o3-20020aa7c7c3000000b0042237eda622sm647318eds.83.2022.04.15.00.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 00:00:34 -0700 (PDT) Date: Fri, 15 Apr 2022 09:00:31 +0200 From: Andrea Parri To: "Michael Kelley (LINUX)" Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Stefano Garzarella , David Miller , Jakub Kicinski , Paolo Abeni , "linux-hyperv@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 6/6] Drivers: hv: vmbus: Refactor the ring-buffer iterator functions Message-ID: <20220415070031.GE2961@anparri> References: <20220413204742.5539-1-parri.andrea@gmail.com> <20220413204742.5539-7-parri.andrea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 > > @@ -470,7 +471,6 @@ struct vmpacket_descriptor *hv_pkt_iter_first_raw(struct > > vmbus_channel *channel) > > > > return (struct vmpacket_descriptor *)(hv_get_ring_buffer(rbi) + rbi- > > >priv_read_index); > > } > > -EXPORT_SYMBOL_GPL(hv_pkt_iter_first_raw); > > Does hv_pkt_iter_first_raw() need to be retained at all as a > separate function? I think after these changes, the only caller > is hv_pkt_iter_first(), in which case the code could just go > inline in hv_pkt_iter_first(). Doing that combining would > also allow the elimination of the duplicate call to > hv_pkt_iter_avail(). Good point. Will do. Thanks, Andrea