diff options
author | Alexander Lobakin <[email protected]> | 2022-03-21 11:59:51 +0100 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2022-04-07 08:20:10 -0700 |
commit | 27ffa273a0405b546b4562b1c65e616d41a1f30e (patch) | |
tree | aa7f5ec9890fe5cdc07d4670070c39474199864f /tools/testing/selftests/bpf/prog_tests | |
parent | 135a161a5ea9e4f01b37defa53e7f5db43a7ca99 (diff) |
ice: switch: unobscurify bitops loop in ice_fill_adv_dummy_packet()
A loop performing header modification according to the provided mask
in ice_fill_adv_dummy_packet() is very cryptic (and error-prone).
Replace two identical cast-deferences with a variable. Replace three
struct-member-array-accesses with a variable. Invert the condition,
reduce the indentation by one -> eliminate line wraps.
Signed-off-by: Alexander Lobakin <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Tested-by: Marcin Szycik <[email protected]>
Tested-by: Sandeep Penigalapati <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions