]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ena] Increase receive ring size to 128 entries
authorMichael Brown <mcb30@ipxe.org>
Fri, 26 Aug 2022 12:17:48 +0000 (13:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 26 Aug 2022 18:38:27 +0000 (19:38 +0100)
commita80124456ee9ade7a63b69f167c3b1348c8d93c0
tree5ed5cd2eb0f432831df1e2f83da578bab335970b
parent3b81a4e2568cfca50893095638a03069785cd33e
[ena] Increase receive ring size to 128 entries

Some versions of the ENA hardware (observed on a c6i.large instance in
eu-west-2) seem to require a receive ring containing at least 128
entries: any smaller ring will never see receive completions or will
stall after the first few completions.

Increase the receive ring size to 128 entries (determined empirically)
for compatibility with these hardware versions.  Limit the receive
ring fill level to 16 (as at present) to avoid consuming more memory
than will typically be available in the internal heap.

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