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 <m...@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)) { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"