From patchwork Mon Jun 13 17:17:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 12879983 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E43E8C433EF for ; Mon, 13 Jun 2022 19:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349281AbiFMTVx (ORCPT ); Mon, 13 Jun 2022 15:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348926AbiFMTVd (ORCPT ); Mon, 13 Jun 2022 15:21:33 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50EEE3204C for ; Mon, 13 Jun 2022 10:18:04 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 129so6127411pgc.2 for ; Mon, 13 Jun 2022 10:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=juaci2PeoXcL+nqMkUy89lNr7q7tNb6TUDgIbRhaIWw=; b=dk7XnnMMUNUZeH5USqPH5eZIK+N/ookTgsHOsMjDEB6TfQFu+xplzvknAaEAA5K+U3 9B7t0ZBMgJWojLC47fY0XfkYlL/VJR9bHUdpolFbttYo2cJv6A0NQ9Lmdl92WCPvbg5b Hm+WOdccIVztYuewNGEy2w0KaMbSSDh/s0weK5Re7WDlkkZ0B8r6qYHhPUAuuAfLT8jK GrTTMM9Uk0JHQjr162JVES4M8b+4QHCCXq2cVckkoMk1DGxLgSY4TvLmeM/kMGauQRvK oNKt4avN8PfrMNbTKKm6MP6rtIBrTaJKF2KLoSEn5XU4pEdGVAUksxL/ykuyyUwnpitp OYug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=juaci2PeoXcL+nqMkUy89lNr7q7tNb6TUDgIbRhaIWw=; b=75F9x/LdUpnzckdXHHCnynlhvUD9mpUkilKakJH//XoM8A7ouNX73y5wpvUKhOPa3A RF2VnAk2TBI9qe/iZPd9kq5rYHM9X50FfN8wXLsnHortX2NdxuGLV9AFye0Xcgts6OGV D6p0o8Otk5JTQhkxzCmJ9wjd9MCxSUB0Q87N+JyVM5cxWcy0WotbT09bG+Y9T7kWMBOV nlb3WVRQ6JaPTNmQNHR4HvCe/vfOmlTI92hCaZOZuqO6Pp6HSQzQNu1SffIq4HSp7HRr jQuxkFAjWADjvmYniMA/VoXiN00Bh0RSAA2acfeJWgt74EtilbjKDEUc4oTCsU+99DAA qi3w== X-Gm-Message-State: AOAM533xjy+lKaOxQ/7PnZsBO/JiY45rj0Ixp/tzo5ODE9H08Fw1Hpn0 z7bhLk2XCmNEipYWrd6fy1CNwQ== X-Google-Smtp-Source: ABdhPJwcTcXOF9xRG3dPFI9a4nx8eDN+e296+S49xU51P+CvYepm9W234zBxio3nRmKFJRYBFiXIbw== X-Received: by 2002:a63:28c:0:b0:3c1:6f72:7288 with SMTP id 134-20020a63028c000000b003c16f727288mr551294pgc.564.1655140683760; Mon, 13 Jun 2022 10:18:03 -0700 (PDT) Received: from localhost.localdomain ([192.77.111.2]) by smtp.gmail.com with ESMTPSA id u17-20020a62d451000000b0050dc762812csm5646641pfl.6.2022.06.13.10.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 10:18:03 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: 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 Subject: [PATCH net-next 0/6] net: ipa: simplify completion statistics Date: Mon, 13 Jun 2022 12:17:53 -0500 Message-Id: <20220613171759.578856-1-elder@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The first patch in this series makes the name used for variables representing a TRE ring be consistent everywhere. The second renames two structure fields to better represent their purpose. The last four rework a little code that manages some tranaction and byte transfer statistics maintained mainly for TX endpoints. For the most part this series is refactoring. The last one also includes the first step toward no longer assuming an event ring is dedicated to a single channel. -Alex Alex Elder (6): net: ipa: use "tre_ring" for all TRE ring local variables net: ipa: rename two transaction fields net: ipa: introduce gsi_trans_tx_committed() net: ipa: simplify TX completion statistics net: ipa: stop counting total RX bytes and transactions net: ipa: rework gsi_channel_tx_update() drivers/net/ipa/gsi.c | 77 +++++++++++++++++------------------ drivers/net/ipa/gsi.h | 2 +- drivers/net/ipa/gsi_private.h | 9 ++++ drivers/net/ipa/gsi_trans.c | 68 +++++++++++++++---------------- drivers/net/ipa/gsi_trans.h | 15 +++---- 5 files changed, 87 insertions(+), 84 deletions(-)