]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[intelxl] Fix retrieval of switch configuration via admin queue
authorMichael Brown <mcb30@ipxe.org>
Mon, 14 Mar 2022 16:28:24 +0000 (16:28 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 8 Aug 2022 14:59:55 +0000 (15:59 +0100)
commit5d3fad5c10c72d836560331b3ffc61a7f62e7994
treef6ef17eff53d344fb2489de396ef15409dfa80c7
parentd3c8944d5c3ab262826ed33b16f3fc4dd43bc304
[intelxl] Fix retrieval of switch configuration via admin queue

Commit 8f3e648 ("[intelxl] Use one admin queue buffer per admin queue
descriptor") changed the API for intelxl_admin_command() such that the
caller now constructs the command directly within the next available
descriptor ring entry, rather than relying on intelxl_admin_command()
to copy the descriptor to and from the descriptor ring.

This introduced a regression in intelxl_admin_switch(), since the
second and subsequent iterations of the loop will not have constructed
a valid command in the new descriptor ring entry before calling
intelxl_admin_command().

Fix by constructing the command within the loop.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intelxl.c