aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2022-03-21 10:59:51 +0000
committerTony Nguyen <[email protected]>2022-04-07 15:20:10 +0000
commit27ffa273a0405b546b4562b1c65e616d41a1f30e (patch)
treeaa7f5ec9890fe5cdc07d4670070c39474199864f /tools/testing/selftests/bpf/prog_tests
parentice: switch: add and use u16[] aliases to ice_adv_lkup_elem::{h, m}_u (diff)
downloadkernel-27ffa273a0405b546b4562b1c65e616d41a1f30e.tar.gz
kernel-27ffa273a0405b546b4562b1c65e616d41a1f30e.zip
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