]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[intelxl] Increase data buffer size to 4kB
authorMichael Brown <mcb30@ipxe.org>
Thu, 11 Aug 2022 14:21:44 +0000 (15:21 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 11 Aug 2022 14:24:29 +0000 (15:24 +0100)
At least one E810 admin queue command (Query Default Scheduling Tree
Topology) insists upon being provided with a 4kB data buffer, even
when the data to be returned is much smaller.

Work around this requirement by increasing the admin queue data buffer
size to 4kB.

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

index 49a825bc75be7f2708e9ffde37f1f7ad906df742..28893945dd6093a5b55ef83e1f0f3e2698b29946 100644 (file)
@@ -329,6 +329,9 @@ union intelxl_admin_params {
        struct intelxl_admin_link_params link;
 } __attribute__ (( packed ));
 
+/** Maximum size of a data buffer */
+#define INTELXL_ADMIN_BUFFER_SIZE 0x1000
+
 /** Admin queue data buffer */
 union intelxl_admin_buffer {
        /** Driver Version data buffer */
@@ -337,8 +340,8 @@ union intelxl_admin_buffer {
        struct intelxl_admin_switch_buffer sw;
        /** Get VSI Parameters data buffer */
        struct intelxl_admin_vsi_buffer vsi;
-       /** Alignment padding */
-       uint8_t pad[INTELXL_ALIGN];
+       /** Maximum buffer size */
+       uint8_t pad[INTELXL_ADMIN_BUFFER_SIZE];
 } __attribute__ (( packed ));
 
 /** Admin queue descriptor */