From patchwork Thu Oct 27 12:26:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 619273 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 4F033ECAAA1 for ; Thu, 27 Oct 2022 12:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233747AbiJ0M0i (ORCPT ); Thu, 27 Oct 2022 08:26:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234305AbiJ0M0i (ORCPT ); Thu, 27 Oct 2022 08:26:38 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA27132EBD for ; Thu, 27 Oct 2022 05:26:37 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id h18so844054ilq.9 for ; Thu, 27 Oct 2022 05:26:37 -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:message-id:reply-to; bh=o1wSBNiDU0GbgrfKwJrfmSl/NSwx/oves1DkSf+koaQ=; b=fRsh+Iiat9ICr99/pvvkt4DO77T79TCbEs4IfZwDCZGrkZorR3lFh85IpVwbwgkrmv pefjZnPpc/SJIfFQR0weGpfMUZhzbPvegjGQcZHbE47IFtYUuJ8V/D0RWb8m3lXNDz2s wTgeBhzYeXD8aYm3mtRdDX4QkTQtaAhQJyBnjMXe+gJWauTPaXzW0VQ8MXLZdN68M1OM d7jAYLV1eD2ku0j41lRLnyMaRXcByOXRUGzz20VAowo/kYWVNqk/PZ2XLrHwSdZLnTru aTlaG5bh4zWkniGvTMbjPkyCb4PbjeorVmKfW0gzy7cGEWSz1wq9BpD7dRE7ppw/5ylK CRsA== 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:message-id :reply-to; bh=o1wSBNiDU0GbgrfKwJrfmSl/NSwx/oves1DkSf+koaQ=; b=ZAim7DXAqsR1MfdmGXz76vI6whSqRGenezORaX+aRaxzBQbdFlXDB6RysCOZQBTLAX L5/MRO+KhgHCn/qqt7FUvlpxIROu+EttHlX7ZRlHRbsUD/Yf9pRnhjpGqt98gaJO1XwM /cO+xfO7Gbe1WC2RKz5rdwRI75bseTBczr2b/kUmLiztpYtfeqef/JLt885sfQd8YbsE X1gw16LFUIyN2juVzEjPQPCG+Dkc9aDsN3kGRmHQCvZ5roY9y/rDZGUpKLCL6y+7S8dp MsTB0ik5cDE0sRDxZX/D95wH0RI07/T87G90kXZa1eVbSTJJ/IYwACFMVJxGf6JVr//D j6tQ== X-Gm-Message-State: ACrzQf23YipfR13O5T8pBqbakXuxuKXz1B5dSLdYBwXHdEB+z/y6GC+Q pXloGAf0tlIZHnYZ9hydUG/vcg== X-Google-Smtp-Source: AMsMyM7EiDaMjRoM7RyMeuChZJy54dnBXY4F9h3eU5eB+F+7RN2Ydquq3D/2o0/qM75/w3EcM3hhmg== X-Received: by 2002:a05:6e02:1bc4:b0:300:61e9:69af with SMTP id x4-20020a056e021bc400b0030061e969afmr4605500ilv.191.1666873596710; Thu, 27 Oct 2022 05:26:36 -0700 (PDT) Received: from localhost.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id w24-20020a05663800d800b003566ff0eb13sm526528jao.34.2022.10.27.05.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 05:26:35 -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, andersson@kernel.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/7] net: ipa: start adding IPA v5.0 functionality Date: Thu, 27 Oct 2022 07:26:25 -0500 Message-Id: <20221027122632.488694-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 biggest change for IPA v5.0 is that it supports more than 32 endpoints. However there are two other unrelated changes: - The STATS_TETHERING memory region is not required - Filter tables no longer support a "global" filter Beyond this, refactoring some code makes supporting more than 32 endpoints (in an upcoming series) easier. So this series includes a few other changes (not in this order): - The maximum endpoint ID in use is determined during config - Loops over all endpoints only involve those in use - Endpoints IDs and their directions are checked for validity differently to simplify comparison against the maximum -Alex Alex Elder (7): net: ipa: define IPA v5.0 net: ipa: change an IPA v5.0 memory requirement net: ipa: no more global filtering starting with IPA v5.0 net: ipa: more completely check endpoint validity net: ipa: refactor endpoint loops net: ipa: determine the maximum endpoint ID net: ipa: record and use the number of defined endpoint IDs drivers/net/ipa/ipa.h | 8 +- drivers/net/ipa/ipa_endpoint.c | 148 ++++++++++++++++++--------------- drivers/net/ipa/ipa_mem.c | 5 +- drivers/net/ipa/ipa_table.c | 59 +++++++------ drivers/net/ipa/ipa_version.h | 3 + 5 files changed, 128 insertions(+), 95 deletions(-)