diff options
author | Ivan Vecera <[email protected]> | 2023-10-26 10:38:52 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-11-27 09:31:34 -0800 |
commit | 4a95ce2407dadc4343759f96411442fdaa5467e4 (patch) | |
tree | b4c311516df66c16c895474e7471be55a18c74b8 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 64c0aad13bb8cea0a5a30c8912bb268dce9b317a (diff) |
i40e: Remove queue tracking fields from i40e_adminq_ring
Fields 'head', 'tail', 'len', 'bah' and 'bal' in i40e_adminq_ring
are used to store register offsets. These offsets are initialized
and remains constant so there is no need to store them in the
i40e_adminq_ring structure.
Remove these fields from i40e_adminq_ring and use register offset
constants instead. Remove i40e_adminq_init_regs() that originally
stores these constants into these fields.
Finally improve i40e_check_asq_alive() that assumes that
non-zero value of hw->aq.asq.len indicates fully initialized
AdminQ send queue. Replace it by check for non-zero value
of field hw->aq.asq.count that is non-zero when the sending
queue is initialized and is zeroed during shutdown of
the queue.
Signed-off-by: Ivan Vecera <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions