[dpdk-dev] [PATCH v4 16/32] net/ice: support device initialization

Lu, Wenzhuo wenzhuo.lu at intel.com
Mon Dec 17 02:11:47 CET 2018


Hi David,
From: David Marchand [mailto:david.marchand at redhat.com]
Sent: Friday, December 14, 2018 8:05 PM
To: Lu, Wenzhuo <wenzhuo.lu at intel.com>
Cc: dev at dpdk.org; Yang, Qiming <qiming.yang at intel.com>; Li, Xiaoyun <xiaoyun.li at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>
Subject: Re: [dpdk-dev] [PATCH v4 16/32] net/ice: support device initialization



On Fri, Dec 14, 2018 at 9:34 AM Wenzhuo Lu <wenzhuo.lu at intel.com<mailto:wenzhuo.lu at intel.com>> wrote:

diff --git a/doc/guides/nics/features/ice.ini b/doc/guides/nics/features/ice.ini
new file mode 100644
index 0000000..085e848
--- /dev/null
+++ b/doc/guides/nics/features/ice.ini
@@ -0,0 +1,11 @@
+;
+; Supported features of the 'ice' network poll mode driver.
+;
+; Refer to default.ini for the full list of available PMD features.
+;
+[Features]
+BSD nic_uio          = Y
+Linux UIO            = Y
+Linux VFIO           = Y
+x86-32               = Y
+x86-64               = Y

[snip]

+/**
+ * Driver initialization routine.
+ * Invoked once at EAL init time.
+ * Register itself as the [Poll Mode] Driver of PCI devices.
+ */
+RTE_PMD_REGISTER_PCI(net_ice, rte_ice_pmd);
+RTE_PMD_REGISTER_PCI_TABLE(ice, pci_id_ice_map);
+
+RTE_INIT(ice_init_log)
+{
+       ice_logtype_init = rte_log_register("pmd.net.ice.init");
+       if (ice_logtype_init >= 0)
+               rte_log_set_level(ice_logtype_init, RTE_LOG_NOTICE);
+       ice_logtype_driver = rte_log_register("pmd.net.ice.driver");
+       if (ice_logtype_driver >= 0)
+               rte_log_set_level(ice_logtype_driver, RTE_LOG_NOTICE);
+}

If this pmd is uio/vfio based, then you must report it via RTE_PMD_REGISTER_KMOD_DEP().
Thanks for reminder. Will add it.

--
David Marchand



More information about the dev mailing list