Below, a lot of pci values are removed and break the build.
Will move in later patches.

2015-11-03 13:01, Bernard Iremonger:
> @@ -674,7 +674,11 @@ rte_pmd_init_internals(const char *name,
>  
>       (*eth_dev)->data = data;
>       (*eth_dev)->dev_ops = &ops;
> -     (*eth_dev)->pci_dev = pci_dev;
> +     (*eth_dev)->driver = NULL;
> +     (*eth_dev)->data->dev_flags = 0;
> +     (*eth_dev)->data->drv_name = drivername;
> +     (*eth_dev)->data->kdrv = RTE_KDRV_NONE;
> +     (*eth_dev)->data->numa_node = numa_node;

> @@ -571,10 +571,15 @@ eth_dev_null_create(const char *name,
>  
>       eth_dev->data = data;
>       eth_dev->dev_ops = &ops;
> -     eth_dev->pci_dev = pci_dev;
> -     eth_dev->driver = &rte_null_pmd;
> +
>       TAILQ_INIT(&eth_dev->link_intr_cbs);

> @@ -874,8 +874,11 @@ rte_pmd_init_internals(const char *name, const unsigned 
> nb_rx_queues,
>  
>       (*eth_dev)->data = data;
>       (*eth_dev)->dev_ops = &ops;
> -     (*eth_dev)->pci_dev = pci_dev;
> -     (*eth_dev)->driver = &rte_pcap_pmd;
> +     (*eth_dev)->data->dev_flags = RTE_ETH_DEV_DETACHABLE;
> +     (*eth_dev)->driver = NULL;
> +     (*eth_dev)->data->kdrv = RTE_KDRV_NONE;
> +     (*eth_dev)->data->drv_name = drivername;
> +     (*eth_dev)->data->numa_node = numa_node;
>  
>       return 0;

> @@ -338,9 +337,13 @@ rte_eth_from_rings(const char *name, struct rte_ring 
> *const rx_queues[],
>       data->mac_addrs = &internals->address;
>  
>       eth_dev->data = data;
> -     eth_dev->driver = &rte_ring_pmd;
> +     eth_dev->driver = NULL;
>       eth_dev->dev_ops = &ops;
> -     eth_dev->pci_dev = pci_dev;
> +     eth_dev->data->dev_flags = RTE_ETH_DEV_DETACHABLE;
> +     eth_dev->data->kdrv = RTE_KDRV_NONE;
> +     eth_dev->data->drv_name = drivername;
> +     eth_dev->data->numa_node = numa_node;
> +
>       TAILQ_INIT(&(eth_dev->link_intr_cbs));
>  

> @@ -688,8 +688,12 @@ eth_dev_xenvirt_create(const char *name, const char 
> *params,
>  
>       eth_dev->data = data;
>       eth_dev->dev_ops = &ops;
> +
>       eth_dev->data->dev_flags = RTE_PCI_DRV_DETACHABLE;
> -     eth_dev->pci_dev = pci_dev;
> +     eth_dev->data->kdrv = RTE_KDRV_NONE;
> +     eth_dev->data->drv_name = drivername;
> +     eth_dev->driver = NULL;
> +     eth_dev->data->numa_node = numa_node;
>  
>       eth_dev->rx_pkt_burst = eth_xenvirt_rx;
>       eth_dev->tx_pkt_burst = eth_xenvirt_tx;
> 


Reply via email to