]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ena-com: Fix ena-com to allocate cdesc aligned to 4k
authorMarcin Wojtas <mw@FreeBSD.org>
Wed, 18 Nov 2020 14:30:59 +0000 (14:30 +0000)
committerMarcin Wojtas <mw@FreeBSD.org>
Wed, 18 Nov 2020 14:30:59 +0000 (14:30 +0000)
commitd5fc5012bbae5e51a9be9f63372a1ef6fef10371
tree3f6ac202c6e8f122208c8bf7eaab5564d2ea914f
parent73cf51936f0f8f2a5661bf98d34521a7bf8feebd
ena-com: Fix ena-com to allocate cdesc aligned to 4k

The latest generation hardware requires IO CQ (completion queue)
descriptors memory to be aligned to a 4K. It needs that feature for
the best performance.

Allocating unaligned descriptors will have a big performance impact as
the packet processing in a HW won't be optimized properly.

It's a critical fix, especially for the arm64 EC2 instances.
ena_com.c
ena_com.h
ena_plat.h