Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2019 13:15:38 +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: r348392 - head/sys/dev/ena
Message-ID:  <201905301315.x4UDFchM061050@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mw
Date: Thu May 30 13:15:38 2019
New Revision: 348392
URL: https://svnweb.freebsd.org/changeset/base/348392

Log:
  Fill number of CPUs field on ENA host_info structure
  
  The new ena_com allows the number of CPUs to be passed to the device in
  the host info structure as a hint.
  
  Submitted by:  Michal Krawczyk <mk@semihalf.com>
  Obtained from: Semihalf
  Sponsored by:  Amazon, Inc.

Modified:
  head/sys/dev/ena/ena.c

Modified: head/sys/dev/ena/ena.c
==============================================================================
--- head/sys/dev/ena/ena.c	Thu May 30 13:14:58 2019	(r348391)
+++ head/sys/dev/ena/ena.c	Thu May 30 13:15:38 2019	(r348392)
@@ -3130,6 +3130,7 @@ ena_config_host_info(struct ena_com_dev *ena_dev)
 		(DRV_MODULE_VER_MAJOR) |
 		(DRV_MODULE_VER_MINOR << ENA_ADMIN_HOST_INFO_MINOR_SHIFT) |
 		(DRV_MODULE_VER_SUBMINOR << ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT);
+	host_info->num_cpus = mp_ncpus;
 
 	rc = ena_com_set_host_attributes(ena_dev);
 	if (unlikely(rc != 0)) {



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