Message ID | 20230125204545.3788155-1-elder@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp477698wrn; Wed, 25 Jan 2023 12:46:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXuGEazlkZEF5u3A40FpLe7LYB6Z5ePfWWSCOyXD1/Zq2iFuPlxRjexeukwtFXuQwggfyHfG X-Received: by 2002:a17:907:cbc5:b0:7ad:9455:d57d with SMTP id vk5-20020a170907cbc500b007ad9455d57dmr36934463ejc.74.1674679592894; Wed, 25 Jan 2023 12:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674679592; cv=none; d=google.com; s=arc-20160816; b=tJoU5nD4EjTNBSeP5SKORFitW4Tp3bQjw8UzCQ32WrLH0eTN10DeNxP0y1JD1MvZNi yWpfvhWxuese9w5RU8l4XrpokU2fKpD1yHvJfuMGgKb0Czv9JQ+uvSHnNIq8esv+0cZ2 VfUNVRV3ce69bgMvEnip3AS1dKO4bw5ZX1oIb/NHYHGCuf67/T4h0CBj83buC8HRpyYu 65wJzbxx35RigxnQM1+whJMEjxS0IpzsvftS9zj3EzpDAFDKHjCVkNID8tU3BXRbEK/3 XQVquSpMzGtFqWesFM1CxTa2C2gLyUu9H6dY1JxRcjmRCZ48NK8uhHnBY8mO/xetjnif +0pw== 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=1zR03idrI1Em30e/j9ttKYe63aGanx8QpT+HrIlYYkU=; b=o1Owb0tVduUkwoKI1B1iaen+KcUtONycVoumb0aZ0DDlo5/WvD+0VrlYXY2Kzn5jIM xQh08QDqFczmeJqNQ1czlny6bvf9U//TCFwyX5r6ieh8IbWy6/0iiUdiE0iyNiKtNfGL ylWdsOtAIDEPNbaprmXaQHei7CATq97eT7R2G5Y0GWM9uj02YShSoC9vG7Yv08V8XjBK 0DKnagdWxsLX6jAyqq5YeVlhKtcud2hIvDnJfs4TVkL555LamTe2xYC8Ab6WJWWagVwW MBfBBY89MM02lz2ghTdiowzap6Olc48vnZwzfSVyn28XBsa2pYU0YxqQMOEe23pFonCI kmCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPEj8Jix; 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 20-20020a170906005400b008728a92060csi7013281ejg.885.2023.01.25.12.46.08; Wed, 25 Jan 2023 12:46:32 -0800 (PST) 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=mPEj8Jix; 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 S236486AbjAYUpx (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Wed, 25 Jan 2023 15:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235174AbjAYUpv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jan 2023 15:45:51 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492AA44A3 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 12:45:50 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id g16so28705ilr.1 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 12:45:50 -0800 (PST) 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=1zR03idrI1Em30e/j9ttKYe63aGanx8QpT+HrIlYYkU=; b=mPEj8JixviosqQPj+AtZmx0JqowU+JDJ9G7hDPL7gsGey3N8UsjPFzoWpNh0GcPvcE K+WLE5RiutNWJw2pvbuyNjs2ohlBVKfXIs3ySzFakshYBqu8z853x5vu9uLT9997oHfi iXsChMDsKW4/dGMAC1hqbfqvoZubp7N40gr57fcPngTjUESSRwOrmvb1060YA7ApnTlC 3iKwhHIs0/rAp7SSWrSIJeQedXV7+XEYAfOGi4D99oBqsLHNRJKQBHnoBXpj8x0Lphp+ F/KvoNmHhaVoutJM2CWTHr4cRU8rqSer2GixI4L+INcG9orIrNQDwQ0Vm/fMnLbPmk8G CarQ== 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=1zR03idrI1Em30e/j9ttKYe63aGanx8QpT+HrIlYYkU=; b=1Q4lMux7BFbSMtO949FLGLMnffd2u2c1SCLYZjOo/a9VSR/fG8zD1wZpuUF7p+80Mi pmHeVEufuzziWrwnb32/0JUjg2cmtXkrWUoNNDfrgNJ5W41wWIK0q8ixmt6tpbTzpToT etegODZKPNtvd9UyLCm0ww30KZbwHQXAgzILKExtJ5pmitm/Vgrru0LIo1lAKH1RkYmR 7SL4jdjFL8jJiQyGGG2Gzqbms3FPv1jTCN768MoHiAgub4KHmM1JCPZGSoUdLCSn/du2 QLonGeMrlZrXqlaJJQz33/QYz9zyj5miRF4LBD4hWqFnRCf25ubi/+DmLv88afZWp08W gWXQ== X-Gm-Message-State: AO0yUKUiZlUYM2Hsjqdpr/nlvlQeLS5wKSfSbNgpIr3vB7DHEVH/U6nL JUvJWfkp5vxtVMvP49FHr6TYqw== X-Received: by 2002:a05:6e02:12ca:b0:310:96f0:a404 with SMTP id i10-20020a056e0212ca00b0031096f0a404mr6893380ilm.27.1674679549339; Wed, 25 Jan 2023 12:45:49 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id w14-20020a02968e000000b00389c2fe0f9dsm1960696jai.85.2023.01.25.12.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 12:45:48 -0800 (PST) From: Alex Elder <elder@linaro.org> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: caleb.connolly@linaro.org, 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/8] net: ipa: abstract status parsing Date: Wed, 25 Jan 2023 14:45:37 -0600 Message-Id: <20230125204545.3788155-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 autolearn=ham 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?1756028828464168959?= X-GMAIL-MSGID: =?utf-8?q?1756028828464168959?= |
Series |
net: ipa: abstract status parsing
|
|
Message
Alex Elder
Jan. 25, 2023, 8:45 p.m. UTC
Under some circumstances, IPA generates a "packet status" structure that describes information about a packet. This is used, for example, when offload hardware detects an error in a packet, or otherwise discovers a packet needs special handling. In this case, the status is delivered (along with the packet it describes) to a "default" endpoint so that it can be handled by the AP. Until now, the structure of this status information hasn't changed. However, to support more than 32 endpoints, this structure required some changes, such that some fields are rearranged in ways that are tricky to represent using C code. This series updates code related to the IPA status structure. The first patch uses a local variable to avoid recomputing a packet length more than once. The second stops using sizeof() to determine the size of an IPA packet status structure. Patches 3-5 extend the definitions for values held in packet status fields. Patch 6 does a little general cleanup to make patch 7 simpler. Patch 7 stops using a C structure to represent packet status; instead, a new function fetches values "by name" from a buffer containing such a structure. The last patch updates this function so it also supports IPA v5.0+. -Alex Alex Elder (8): net: ipa: refactor status buffer parsing net: ipa: stop using sizeof(status) net: ipa: define all IPA status mask bits net: ipa: rename the NAT enumerated type net: ipa: define remaining IPA status field values net: ipa: IPA status preparatory cleanups net: ipa: introduce generalized status decoder net: ipa: add IPA v5.0 packet status support drivers/net/ipa/ipa_endpoint.c | 280 +++++++++++++++++++++++++-------- drivers/net/ipa/ipa_reg.h | 10 +- 2 files changed, 217 insertions(+), 73 deletions(-)
Comments
Hello: This series was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Wed, 25 Jan 2023 14:45:37 -0600 you wrote: > Under some circumstances, IPA generates a "packet status" structure > that describes information about a packet. This is used, for > example, when offload hardware detects an error in a packet, or > otherwise discovers a packet needs special handling. In this case, > the status is delivered (along with the packet it describes) to a > "default" endpoint so that it can be handled by the AP. > > [...] Here is the summary with links: - [net-next,1/8] net: ipa: refactor status buffer parsing https://git.kernel.org/netdev/net-next/c/63a560b5289a - [net-next,2/8] net: ipa: stop using sizeof(status) https://git.kernel.org/netdev/net-next/c/b8dc7d0eea5a - [net-next,3/8] net: ipa: define all IPA status mask bits https://git.kernel.org/netdev/net-next/c/8e71708bb25e - [net-next,4/8] net: ipa: rename the NAT enumerated type https://git.kernel.org/netdev/net-next/c/cbea4761173d - [net-next,5/8] net: ipa: define remaining IPA status field values https://git.kernel.org/netdev/net-next/c/ec4c24f6a511 - [net-next,6/8] net: ipa: IPA status preparatory cleanups https://git.kernel.org/netdev/net-next/c/02c5077439fc - [net-next,7/8] net: ipa: introduce generalized status decoder https://git.kernel.org/netdev/net-next/c/ebd2a82ecea8 - [net-next,8/8] net: ipa: add IPA v5.0 packet status support https://git.kernel.org/netdev/net-next/c/55c6eae70ff1 You are awesome, thank you!