diff mbox series

[02/20] net/ena: pass number of CPUs to the host info structure

Message ID 20181214131846.22439-3-mk@semihalf.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series net/ena: ENAv2 release | expand


Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Michał Krawczyk Dec. 14, 2018, 1:18 p.m. UTC
From: Rafal Kozik <rk@semihalf.com>

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>
 drivers/net/ena/ena_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 667820806..5e9666f74 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)
+	host_info->num_cpus = rte_lcore_count();
 	rc = ena_com_set_host_attributes(ena_dev);
 	if (rc) {