diff options
author | Alex Elder <[email protected]> | 2023-01-25 14:45:38 -0600 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-01-27 11:16:28 +0000 |
commit | 63a560b5289a0f9d66d099fb093c20b0abe01027 (patch) | |
tree | f661c2fcc38143733c64bd2791c20fe4180b1c0b /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | c8005511f38757ef071b34c0a98cf3d8a1c920a7 (diff) |
net: ipa: refactor status buffer parsing
The packet length encoded in an IPA packet status buffer is computed
more than once in ipa_endpoint_status_parse(). It is also checked
again in ipa_endpoint_status_skip(), which that function calls.
Compute the length once, and use that computed value later rather
than recomputing it. Check for it being zero in the parse function
rather than in ipa_endpoint_status_skip().
Signed-off-by: Alex Elder <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions