[dpdk-dev,18/20] mlx4: copy pci device info to eth_dev data
Commit Message
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
drivers/net/mlx4/mlx4.c | 4 ++++
1 file changed, 4 insertions(+)
@@ -3,6 +3,7 @@
*
* Copyright 2012-2015 6WIND S.A.
* Copyright 2012 Mellanox.
+ * Copyright(c) 2015 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -4980,6 +4981,9 @@ mlx4_pci_devinit(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
eth_dev->data->dev_private = priv;
eth_dev->pci_dev = pci_dev;
+
+ rte_eth_copy_dev_info(eth_dev, pci_dev);
+
eth_dev->driver = &mlx4_driver;
eth_dev->data->rx_mbuf_alloc_failed = 0;
eth_dev->data->mtu = ETHER_MTU;