Commit 6e65bb52 authored by David S. Miller's avatar David S. Miller

Merge branch 'ipa-abstract-status'

Alex Elder says:

====================
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+.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents c8005511 55c6eae7
This diff is collapsed.
...@@ -382,11 +382,11 @@ enum ipa_reg_endp_init_nat_field_id { ...@@ -382,11 +382,11 @@ enum ipa_reg_endp_init_nat_field_id {
NAT_EN, NAT_EN,
}; };
/** enum ipa_nat_en - ENDP_INIT_NAT register NAT_EN field value */ /** enum ipa_nat_type - ENDP_INIT_NAT register NAT_EN field value */
enum ipa_nat_en { enum ipa_nat_type {
IPA_NAT_BYPASS = 0x0, IPA_NAT_TYPE_BYPASS = 0,
IPA_NAT_SRC = 0x1, IPA_NAT_TYPE_SRC = 1,
IPA_NAT_DST = 0x2, IPA_NAT_TYPE_DST = 2,
}; };
/* ENDP_INIT_HDR register */ /* ENDP_INIT_HDR register */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment