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

David Marchand david.marchand at redhat.com
Fri Dec 14 13:05:28 CET 2018


On Fri, Dec 14, 2018 at 9:34 AM Wenzhuo Lu <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().


-- 
David Marchand


More information about the dev mailing list