From patchwork Fri Sep 2 21:02:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 602430 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 855C5C6FA82 for ; Fri, 2 Sep 2022 21:02:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbiIBVCY (ORCPT ); Fri, 2 Sep 2022 17:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230441AbiIBVCX (ORCPT ); Fri, 2 Sep 2022 17:02:23 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE375AD9AA for ; Fri, 2 Sep 2022 14:02:22 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id i77so2639117ioa.7 for ; Fri, 02 Sep 2022 14:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=ZPui7nz2t/JidoBEB5DJqHDb5B0r6Z1+2ugl0ACPk+s=; b=WS6+Z/enNrHKG2vyzj7Rd6uVC79M2MrNYm1UV5AuT9S9S2WBS516zxqhG2nPuyAdSA 1tvF7rPqGNB0Vwg8HYjzOFSVs1L3C6nDYK6JW1WD5a9YrwFk82qqqDGJaQfCOU0N/D4a ShN/tsSwSiGgagbYX3iz5X+vDtwOvmZO3i4hdlYuvYK4x/s5e4GZWYctkfoAI7enWVN7 AMIpsH2BrAHQgGXeQR0R/SN47XNSE5BT26yiMUj8+CeBVvnLNKqDl/kTWHBv9xjfl1r8 paaYqfWl/XO+qocuQRxsv7Drt+gWkAwpf76bdrzEEzHG6i50DNXayRGuuAYj3p1VnabE MCmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=ZPui7nz2t/JidoBEB5DJqHDb5B0r6Z1+2ugl0ACPk+s=; b=jbI8ngFev12hKJQaHpObHUeIjGY4onxbIafsRoqEx0mfXOn4ohzrnmOZ8aYK+8smbn LvBWdVBsdcApbPprkFtmeQGSvhvwAiUVNvhgo/AqJ+dvxQpoEH/OweSBGsF0yaYamamO 0QeU9tJZCxHCORaeyDsjHwzba9yeEo51m4Dm9K2GIGGDRhT6wPwNk9szlwqJ17UAvrKg nHCeNtN7eoTSQbcELAVCVZULFGmeZOjQWEZCa2i+zVDKJ+kldK639OPptncY856JFt8x GOQitWVzzmkewo2G70XEELJzY57Bs5D8hN8LjyxHqL50j1hUpYfAhG95N0NWK4VFjw61 PMZg== X-Gm-Message-State: ACgBeo2hX7lliDfJwP/FEfy6nkZueLlOYscWfjALpG/GhOOujpUYZnx4 5A9OYnbMHCd5DhKAYgRz6o6bYw== X-Google-Smtp-Source: AA6agR5aLVePYhKwuT74x+sX+QCC/FdUuQxIw4dmkdz9/ni8Xn3uI6Od1OobvS1PyfI0yq/kr4BwtA== X-Received: by 2002:a05:6638:3047:b0:341:de2b:e489 with SMTP id u7-20020a056638304700b00341de2be489mr20991527jak.273.1662152541983; Fri, 02 Sep 2022 14:02:21 -0700 (PDT) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id i7-20020a0566022c8700b00689e718d971sm1259208iow.51.2022.09.02.14.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 14:02:21 -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: start using transaction IDs Date: Fri, 2 Sep 2022 16:02:12 -0500 Message-Id: <20220902210218.745873-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 A previous group of patches added ID fields to track the state of transactions: https://lore.kernel.org/netdev/20220831224017.377745-1-elder@linaro.org This series starts using those IDs instead of the lists used previously. Most of this series involves reworking the function that determines which transaction is the "last", which determines when a channel has been quiesed. The last patch is mainly used to prove that the new index method of tracking transaction state is equivalent to the previous use of lists. -Alex Alex Elder (6): net: ipa: rework last transaction determination net: ipa: use IDs for last allocated transaction net: ipa: use IDs exclusively for last transaction net: ipa: simplify gsi_channel_trans_last() net: ipa: further simplify gsi_channel_trans_last() net: ipa: verify a few more IDs drivers/net/ipa/gsi.c | 53 +++++++++++---------------- drivers/net/ipa/gsi_private.h | 14 ++++++++ drivers/net/ipa/gsi_trans.c | 68 ++++++++++++++++++++++------------- 3 files changed, 78 insertions(+), 57 deletions(-)