From: Bernard Iremonger Date: Tue, 3 Nov 2015 13:02:02 +0000 (+0000) Subject: af_packet: remove fake pci interface X-Git-Tag: spdx-start~8160 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=10e600cb884ae2afe14946c7891c85001a960ef4;p=dpdk.git af_packet: remove fake pci interface Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson Acked-by: John W. Linville --- diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index c7d5522532..3237e6ecdf 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++ b/drivers/net/af_packet/rte_eth_af_packet.c @@ -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; }