svn commit: r325590 - head/sys/dev/ena
Marcin Wojtas
mw at FreeBSD.org
Thu Nov 9 13:33:03 UTC 2017
Author: mw
Date: Thu Nov 9 13:33:02 2017
New Revision: 325590
URL: https://svnweb.freebsd.org/changeset/base/325590
Log:
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 at semihalf.com>
Reviewed by: byenduri_gmail.com
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D12869
Modified:
head/sys/dev/ena/ena.c
Modified: head/sys/dev/ena/ena.c
==============================================================================
--- head/sys/dev/ena/ena.c Thu Nov 9 13:30:39 2017 (r325589)
+++ head/sys/dev/ena/ena.c Thu Nov 9 13:33:02 2017 (r325590)
@@ -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);
More information about the svn-src-head
mailing list