Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2017 13:33:02 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325590 - head/sys/dev/ena
Message-ID:  <201711091333.vA9DX2Pd092945@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711091333.vA9DX2Pd092945>