diff options
author | Ivan Vecera <[email protected]> | 2023-10-26 10:39:32 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-11-27 09:34:04 -0800 |
commit | 3d66f21552df25cf56f7f800a8d7687c88771761 (patch) | |
tree | 41f87c28d985353287108552e16d691c62655e4a /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 4a95ce2407dadc4343759f96411442fdaa5467e4 (diff) |
iavf: Remove queue tracking fields from iavf_adminq_ring
Fields 'head', 'tail', 'len', 'bah' and 'bal' in iavf_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
iavf_adminq_ring structure.
Remove these fields from iavf_adminq_ring and use register offset
constants instead. Remove iavf_adminq_init_regs() that originally
stores these constants into these fields.
Finally improve iavf_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]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Rafal Romanowski <[email protected]>
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