af_packet: remove fake pci interface
authorBernard Iremonger <bernard.iremonger@intel.com>
Tue, 3 Nov 2015 13:02:02 +0000 (13:02 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Nov 2015 17:47:51 +0000 (18:47 +0100)
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: John W. Linville <linville@tuxdriver.com>
drivers/net/af_packet/rte_eth_af_packet.c

index c7d5522..3237e6e 100644 (file)
@@ -432,7 +432,6 @@ rte_pmd_init_internals(const char *name,
                        struct rte_kvargs *kvlist)
 {
        struct rte_eth_dev_data *data = NULL;
-       struct rte_pci_device *pci_dev = NULL;
        struct rte_kvargs_pair *pair = NULL;
        struct ifreq ifr;
        size_t ifnamelen;
@@ -470,10 +469,6 @@ rte_pmd_init_internals(const char *name,
        if (data == NULL)
                goto error_early;
 
-       pci_dev = rte_zmalloc_socket(name, sizeof(*pci_dev), 0, numa_node);
-       if (pci_dev == NULL)
-               goto error_early;
-
        *internals = rte_zmalloc_socket(name, sizeof(**internals),
                                        0, numa_node);
        if (*internals == NULL)
@@ -670,11 +665,8 @@ rte_pmd_init_internals(const char *name,
        data->dev_link = pmd_link;
        data->mac_addrs = &(*internals)->eth_addr;
 
-       pci_dev->numa_node = numa_node;
-
        (*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;
@@ -698,7 +690,6 @@ error:
        }
        rte_free(*internals);
 error_early:
-       rte_free(pci_dev);
        rte_free(data);
        return -1;
 }