mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix calculating io queues number in ENA driver
The maximum number of io_cq was the same number as maximum io_sq indicated by the device working in normal mode (without LLQ). It is not always true, especially when LLQ is being enabled. Fix it. Submitted by: Michal Krawczyk <mk@semihalf.com> Reviewed by: byenduri_gmail.com Obtained from: Semihalf Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D12869
This commit is contained in:
parent
4e8acd844f
commit
ad5a5afaad
1 changed files with 1 additions and 1 deletions
|
|
@ -3006,7 +3006,7 @@ ena_calc_io_queue_num(struct ena_adapter *adapter,
|
|||
int io_sq_num, io_cq_num, io_queue_num;
|
||||
|
||||
io_sq_num = get_feat_ctx->max_queues.max_sq_num;
|
||||
io_cq_num = get_feat_ctx->max_queues.max_sq_num;
|
||||
io_cq_num = get_feat_ctx->max_queues.max_cq_num;
|
||||
|
||||
io_queue_num = min_t(int, mp_ncpus, ENA_MAX_NUM_IO_QUEUES);
|
||||
io_queue_num = min_t(int, io_queue_num, io_sq_num);
|
||||
|
|
|
|||
Loading…
Reference in a new issue