freebsd-dev/sys/contrib/ena-com
Marcin Wojtas eb4c4f4a2e ena: merge ena-com v2.5.0 upgrade
Merge commit '2530eb1fa01bf28fbcfcdda58bd41e055dcb2e4a'

Adjust the driver to the upgraded ena-com part twofold:

First update is related to the driver's NUMA awareness.

Allocate I/O queue memory in NUMA domain local to the CPU bound to the
given queue, improving data access time. Since this can result in
performance hit for unaware users, this is done only when RSS
option is enabled, for other cases the driver relies on kernel to
allocate memory by itself.

Information about first CPU bound is saved in adapter structure, so
the binding persists after bringing the interface down and up again.

If there are more buckets than interface queues, the driver will try to
bind different interfaces to different CPUs using round-robin algorithm
(but it will not bind queues to CPUs which do not have any RSS buckets
associated with them). This is done to better utilize hardware
resources by spreading the load.

Add (read-only) per-queue sysctls in order to provide the following
information:
- queueN.domain: NUMA domain associated with the queue
- queueN.cpu:    CPU affinity of the queue

The second change is for the CSUM_OFFLOAD constant, as ENA platform
file has removed its definition. To align to that change, it has been
added to the ena_datapath.h file.

Submitted by: Artur Rojek <ar@semihalf.com>
Submitted by: Dawid Gorecki <dgr@semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.
2022-01-23 20:27:13 +01:00
..
ena_defs Merge tag 'vendor/ena-com/2.4.0' 2021-06-24 16:15:18 +02:00
ena_admin_defs.h
ena_com.c Merge tag 'vendor/ena-com/2.4.0' 2021-06-24 16:15:18 +02:00
ena_com.h Merge tag 'vendor/ena-com/2.4.0' 2021-06-24 16:15:18 +02:00
ena_common_defs.h
ena_eth_com.c Merge tag 'vendor/ena-com/2.4.0' 2021-06-24 16:15:18 +02:00
ena_eth_com.h Adjust ENA driver files to latest ena-com changes 2020-11-18 14:59:22 +00:00
ena_eth_io_defs.h
ena_fbsd_log.h Merge tag 'vendor/ena-com/2.4.0' 2021-06-24 16:15:18 +02:00
ena_plat.h ena: merge ena-com v2.5.0 upgrade 2022-01-23 20:27:13 +01:00
ena_regs_defs.h