aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2023-01-25 14:45:38 -0600
committerDavid S. Miller <[email protected]>2023-01-27 11:16:28 +0000
commit63a560b5289a0f9d66d099fb093c20b0abe01027 (patch)
treef661c2fcc38143733c64bd2791c20fe4180b1c0b /tools/testing/selftests/bpf/prog_tests/autoload.c
parentc8005511f38757ef071b34c0a98cf3d8a1c920a7 (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