summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/consts.py
diff options
context:
space:
mode:
authorAlok Tiwari <alok.a.tiwari@oracle.com>2025-11-25 14:36:27 -0800
committerJakub Kicinski <kuba@kernel.org>2025-11-27 18:34:21 -0800
commitd89a5c27e4f395a0d93652f01c959ce4b1ed42b7 (patch)
tree0a385cf31b7375326c7b1e19f484bbb31f59e2c5 /tools/testing/selftests/net/lib/py/consts.py
parent5849b56addbfc060a012c7326d3bac279c303f43 (diff)
idpf: use desc_ring when checking completion queue DMA allocation
idpf_compl_queue uses a union for comp, comp_4b, and desc_ring. The release path should check complq->desc_ring to determine whether the DMA descriptor ring is allocated. The current check against comp works but is leftover from a previous commit and is misleading in this context. Switching the check to desc_ring improves readability and more directly reflects the intended meaning, since desc_ring is the field representing the allocated DMA-backed descriptor ring. No functional change. Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://patch.msgid.link/20251125223632.1857532-9-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/consts.py')
0 files changed, 0 insertions, 0 deletions