Skip to content

net: ipa: abstract status parsing

Alex Elder linux-arm-msm lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: ipa: refactor status buffer parsingdrivers/net/ipa/ipa_endpoint.c+6 -80 repliesApplied
2/8net: ipa: stop using sizeof(status)drivers/net/ipa/ipa_endpoint.c+9 -60 repliesApplied
3/8net: ipa: define all IPA status mask bitsdrivers/net/ipa/ipa_endpoint.c+22 -30 repliesApplied
4/8net: ipa: rename the NAT enumerated typedrivers/net/ipa/ipa_endpoint.c drivers/net/ipa/ipa_reg.h+8 -60 repliesApplied
5/8net: ipa: define remaining IPA status field valuesdrivers/net/ipa/ipa_endpoint.c+22 -90 repliesApplied
6/8net: ipa: IPA status preparatory cleanupsdrivers/net/ipa/ipa_endpoint.c+25 -180 repliesApplied
7/8net: ipa: introduce generalized status decoderdrivers/net/ipa/ipa_endpoint.c+120 -380 repliesApplied
8/8net: ipa: add IPA v5.0 packet status supportdrivers/net/ipa/ipa_endpoint.c+36 -160 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/8] net: ipa: abstract status parsing

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(-)
Signature · 1 line
2.34.1