Message ID | 20221025195143.255934-1-elder@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1188701wru; Tue, 25 Oct 2022 12:56:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63jEptPIOh9rSHhgdRRcGhcEDys4Xr+hx4IU4ZZZqt/OIrkjh76Ey4JIBgH9IXQ6yIF6h0 X-Received: by 2002:a17:90b:1b46:b0:212:fa5b:948a with SMTP id nv6-20020a17090b1b4600b00212fa5b948amr17700561pjb.232.1666727795323; Tue, 25 Oct 2022 12:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666727795; cv=none; d=google.com; s=arc-20160816; b=QtL+JbVNTq1P0cMWbCNYYZZ1zbkrqsqPQYavQfHLYDYNRcNmmmtlmg4cSVoZIcWQiH BBcwbkTi+2lo8P3U3GUynhTXsEsXU62IV82+bxO4qBlSA/cF1BluXjc9qt2V1YznHOUc MlmuEvl5khyCDht13a5HogUwkizKgWrpU8GW4tnL0IXufmRNcQ8TwwjtKOZUivA34zYF y6JaUAcj0PE7kpr5v5THZ0mrj+b0f2DauYi697kxUlMH7ZTLSnwLLu/upkmk6hRB4RQw nlpfYN7AFqeKg9MzaZIN3eTIYEwb39Tw6zaZHh46vMcEt6ePmzRORqhu9bqQGaZO1tQO wE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KifJwYm2J4wmA/ryKiExPDIUq5ZgsA0XWIcfAcXckDw=; b=YQfz2GO/kbQeUopzqICfJz6aunlOF/ZWq4DVA2rg/BQc6NWd9byoAHMV1FYgaZYeX9 jXoIDZtVU2B3e+FjWHBp7GhPQg6E2yVfORuHCvyJDhD20TNxhtAmOi7c5JkwK5agBWWP QDc1y5ylXVr8rn7KpWAcQgBVpwJS1PXkvQOvvbZInjsu8ciUfGG7n3YuQyElOMWqCOIN qpA5CF9duJBDetoI9coEkhD/AJA3Jj0bs+/TeD/gIAjycrF8vSgXjezyQdtTV+WgIeX7 BzVL9I/OOwHaOjLbpypwx/7r5Gb8UKdfBvvt0TAdDP+JqDC1LvRnJ0olIYd5vUEIH5bt yllQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AzhqEQxy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b00412607fea43si4024772pgb.617.2022.10.25.12.56.21; Tue, 25 Oct 2022 12:56:35 -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; dkim=pass header.i=@linaro.org header.s=google header.b=AzhqEQxy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232473AbiJYTv7 (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Tue, 25 Oct 2022 15:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbiJYTv4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Oct 2022 15:51:56 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59834106A7E for <linux-kernel@vger.kernel.org>; Tue, 25 Oct 2022 12:51:50 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id l127so11392416iof.12 for <linux-kernel@vger.kernel.org>; Tue, 25 Oct 2022 12:51:50 -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=KifJwYm2J4wmA/ryKiExPDIUq5ZgsA0XWIcfAcXckDw=; b=AzhqEQxy38tnrpHWl3m17NBt7Vpd28ILazW48sWm3eymf46kVobx1Dzqs7FA3X0yRp l6BSkD3KVC7b9sDw3Ah0TjpifpJoeiyljvtG2Yld0c9ShsJDfZtw3HtT8bKAybXT+eEq MM/7wWD+RrGN2GpGJJ2xAyixXBgDZOTSCnkSM4F2J3u8zp4ff37N7EjDAPu5erzMx2YG PizQPMYBomLufXMWOeWrGk58Rgra7/ckO69nMcUXgtBgLviAc2wPRkPX9DFLSbFE1gWP 3QgIG9vp8ehCUgv8R0Kz1B9aNF2z6tBhRqKb3j+3zR26s8ar4PmOERxykf8HI5yX5qML QVaA== 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=KifJwYm2J4wmA/ryKiExPDIUq5ZgsA0XWIcfAcXckDw=; b=mVS1aq2Ys9m9DbqUiFkwc6t4gso7RX/voc8djMq59bEUSUKOzhC1TI0BEgJ7EqozRi n6LS0yhcFYcB5PXAHcp4DLLKLFrLKiAzD+AkqxIxYn8Kk5pgHMHUBYI/qL91kXK4rO+j 8bn8NZFxjRh2YIwZSZQyVKLi9fZmFW5nKlBrWmqpIjoGv6TdNNB5DzlWhA8Tdlg0KGgg E2havheGL0y25MZdKWffwJY5VP4ztkk3KJ4+QtvT7sB9hHorx6+oZvRX+1GRAPA0w2T7 CRaucO0x0TG/E05nMibiVI7FrcJPctEVHyMp5IK6AAf3Le2dt4gDCrIUkBywyf1KJ1n+ yw6Q== X-Gm-Message-State: ACrzQf2wzgHKrbzaSEM0QUUIKar4c5u0GysytBTI8fWJb91xtpDZ6vY+ hf1QGl4c5zN4lExmHnbTYHIPow== X-Received: by 2002:a6b:ba55:0:b0:6b4:de08:ee55 with SMTP id k82-20020a6bba55000000b006b4de08ee55mr23276948iof.148.1666727509415; Tue, 25 Oct 2022 12:51:49 -0700 (PDT) Received: from localhost.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id y10-20020a056638014a00b00349d2d52f6asm1211719jao.37.2022.10.25.12.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 12:51:47 -0700 (PDT) From: Alex Elder <elder@linaro.org> 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/4] net: ipa: don't use fixed table sizes Date: Tue, 25 Oct 2022 14:51:39 -0500 Message-Id: <20221025195143.255934-1-elder@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747690765001894161?= X-GMAIL-MSGID: =?utf-8?q?1747690765001894161?= |
Series |
net: ipa: don't use fixed table sizes
|
|
Message
Alex Elder
Oct. 25, 2022, 7:51 p.m. UTC
Currently, routing and filter tables are assumed to have a fixed size for all platforms. In fact, these tables can support many more entries than what has been assumed; the only limitation is the size of the IPA-resident memory regions that contain them. This series rearranges things so that the size of the table is determined from the memory region size defined in configuration data, rather than assuming it is fixed. This will required for IPA versions 5.0+, where the number of entries in a routing table is larger. -Alex Alex Elder (4): net: ipa: record the route table size in the IPA structure net: ipa: determine route table size from memory region net: ipa: don't assume 8 modem routing table entries net: ipa: determine filter table size from memory region drivers/net/ipa/data/ipa_data-v3.1.c | 19 ++++---- drivers/net/ipa/data/ipa_data-v3.5.1.c | 27 ++++++------ drivers/net/ipa/data/ipa_data-v4.11.c | 17 +++---- drivers/net/ipa/data/ipa_data-v4.2.c | 17 +++---- drivers/net/ipa/data/ipa_data-v4.5.c | 17 +++---- drivers/net/ipa/data/ipa_data-v4.9.c | 17 +++---- drivers/net/ipa/ipa.h | 6 +++ drivers/net/ipa/ipa_cmd.c | 21 ++++----- drivers/net/ipa/ipa_data.h | 2 + drivers/net/ipa/ipa_main.c | 6 +++ drivers/net/ipa/ipa_mem.c | 4 +- drivers/net/ipa/ipa_qmi.c | 9 ++-- drivers/net/ipa/ipa_table.c | 61 ++++++++++++++------------ drivers/net/ipa/ipa_table.h | 13 +----- 14 files changed, 123 insertions(+), 113 deletions(-)
Comments
Hello: This series was applied to netdev/net-next.git (master) by Paolo Abeni <pabeni@redhat.com>: On Tue, 25 Oct 2022 14:51:39 -0500 you wrote: > Currently, routing and filter tables are assumed to have a fixed > size for all platforms. In fact, these tables can support many more > entries than what has been assumed; the only limitation is the size > of the IPA-resident memory regions that contain them. > > This series rearranges things so that the size of the table is > determined from the memory region size defined in configuration > data, rather than assuming it is fixed. > > [...] Here is the summary with links: - [net-next,1/4] net: ipa: record the route table size in the IPA structure https://git.kernel.org/netdev/net-next/c/fc094058ce01 - [net-next,2/4] net: ipa: determine route table size from memory region https://git.kernel.org/netdev/net-next/c/0439e6743c5c - [net-next,3/4] net: ipa: don't assume 8 modem routing table entries https://git.kernel.org/netdev/net-next/c/8defab8bdfb1 - [net-next,4/4] net: ipa: determine filter table size from memory region https://git.kernel.org/netdev/net-next/c/f787d8483015 You are awesome, thank you!