summaryrefslogtreecommitdiff
path: root/drivers/net/ena
diff options
context:
space:
mode:
authorRafal Kozik <rk@semihalf.com>2018-12-14 14:18:28 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-21 16:22:40 +0100
commitb9302eb93a44f10c23675c50941aa8095ef66827 (patch)
tree91d75a986f8a245917b0ddb37ce9e24f7a3cf568 /drivers/net/ena
parentb68309be44c07c0c7c8ae99ec3a1a30ebba4f3f9 (diff)
downloaddpdk-next-eventdev-b9302eb93a44f10c23675c50941aa8095ef66827.zip
dpdk-next-eventdev-b9302eb93a44f10c23675c50941aa8095ef66827.tar.gz
dpdk-next-eventdev-b9302eb93a44f10c23675c50941aa8095ef66827.tar.xz
net/ena: pass number of CPUs to the host info structure
The new ena_com allows the number of CPUs to be passed to the device in the host info structure. Signed-off-by: Rafal Kozik <rk@semihalf.com> Acked-by: Michal Krawczyk <mk@semihalf.com>
Diffstat (limited to 'drivers/net/ena')
-rw-r--r--drivers/net/ena/ena_ethdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 6678208..5e9666f 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -437,6 +437,7 @@ static void ena_config_host_info(struct ena_com_dev *ena_dev)
(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 = rte_lcore_count();
rc = ena_com_set_host_attributes(ena_dev);
if (rc) {