X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Fvirtual_pmd.c;h=a538c8a16e9b41ad5cc30e94468c1a22befcc95d;hb=d9a2009a81089093645fea2e04b51dd37edf3e6f;hp=95818928ffbe685fcb519e4ef04d0bfd506116d6;hpb=2c62fae0a901691d458abb81f458c4818003b911;p=dpdk.git diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c index 95818928ff..a538c8a16e 100644 --- a/app/test/virtual_pmd.c +++ b/app/test/virtual_pmd.c @@ -562,6 +562,7 @@ virtual_ethdev_create(const char *name, struct ether_addr *mac_addr, id_table = rte_zmalloc_socket(name, sizeof(*id_table), 0, socket_id); if (id_table == NULL) goto err; + id_table->device_id = 0xBEEF; dev_private = rte_zmalloc_socket(name, sizeof(*dev_private), 0, socket_id); if (dev_private == NULL) @@ -627,8 +628,6 @@ virtual_ethdev_create(const char *name, struct ether_addr *mac_addr, eth_dev->pci_dev = pci_dev; eth_dev->pci_dev->driver = ð_drv->pci_drv; - eth_dev->pci_dev->driver->id_table->device_id = 0xBEEF; - eth_dev->rx_pkt_burst = virtual_ethdev_rx_burst_success; eth_dev->tx_pkt_burst = virtual_ethdev_tx_burst_success;