freebsd-nq/sys/dev/ena
Marcin Wojtas 56d41ad5fe Add sysctl node for ENA IO queues number adjustment
By default, in ena_attach() the driver attempts to acquire
ena_adapter::max_num_io_queues MSI-X vectors for the purpose of IO
queues, however this is not guaranteed. The number of vectors acquired
depends also on system resources availability.

Regardless of that, enable the number of effectively used IO queues to
be further limited through the sysctl node.

Example: Assumming that there are 8 IO queues configured by default, the
command

$ sysctl dev.ena.0.io_queues_nb=4

will reduce the number of available IO queues to 4. Similarly, the value
can be also increased up to maximum supported value. A value higher than
maximum supported number of IO queues is ignored. Zero is ignored too.

Submitted by:  Maciej Bielski <mba@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Amazon, Inc.
2020-05-26 15:57:02 +00:00
..
ena_datapath.c Rework ENA Rx queue size configuration 2020-05-26 15:48:06 +00:00
ena_datapath.h Expose argument names for non static ENA driver functions 2020-05-26 15:41:53 +00:00
ena_netmap.c Rework ENA Rx queue size configuration 2020-05-26 15:48:06 +00:00
ena_netmap.h Expose argument names for non static ENA driver functions 2020-05-26 15:41:53 +00:00
ena_sysctl.c Add sysctl node for ENA IO queues number adjustment 2020-05-26 15:57:02 +00:00
ena_sysctl.h Expose argument names for non static ENA driver functions 2020-05-26 15:41:53 +00:00
ena.c Add sysctl node for ENA IO queues number adjustment 2020-05-26 15:57:02 +00:00
ena.h Add sysctl node for ENA IO queues number adjustment 2020-05-26 15:57:02 +00:00