diff options
| author | 2022-03-21 11:59:51 +0100 | |
|---|---|---|
| committer | 2022-04-07 08:20:10 -0700 | |
| commit | 27ffa273a0405b546b4562b1c65e616d41a1f30e (patch) | |
| tree | aa7f5ec9890fe5cdc07d4670070c39474199864f /tools/testing/selftests/bpf/prog_tests | |
| parent | ice: switch: add and use u16[] aliases to ice_adv_lkup_elem::{h, m}_u (diff) | |
| download | linux-dev-27ffa273a0405b546b4562b1c65e616d41a1f30e.tar.xz linux-dev-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 <alexandr.lobakin@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions
