[dpdk-dev] [PATCH v3 04/17] net/ionic: register and initialize the adapter

Ferruh Yigit ferruh.yigit at intel.com
Tue Dec 10 19:50:56 CET 2019


On 12/9/2019 9:46 PM, Alfredo Cardigliano wrote:
> Register the Pensando ionic PMD (net_ionic) and define initial probe
> and remove callbacks with adapter initialization.
> 
> Signed-off-by: Alfredo Cardigliano <cardigliano at ntop.org>
> Reviewed-by: Shannon Nelson <snelson at pensando.io>

<...>

> +/*
> + * There is no room in struct rte_pci_driver to keep a reference
> + * to the adapter, using a static list for the time being.
> + */
> +static LIST_HEAD(ionic_pci_adapters_list, ionic_adapter) ionic_pci_adapters =
> +		LIST_HEAD_INITIALIZER(ionic_pci_adapters);
> +static rte_spinlock_t ionic_pci_adapters_lock = RTE_SPINLOCK_INITIALIZER;

As described in previous version of the patchset, it is possible to remove the
PMD maintained list of adapters, is there any benefit to keep it?


More information about the dev mailing list