[dpdk-dev,17/20] enic: copy pci device info to eth_dev data
Commit Message
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
drivers/net/enic/enic_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
@@ -3,6 +3,7 @@
* Copyright 2007 Nuova Systems, Inc. All rights reserved.
*
* Copyright (c) 2014, Cisco Systems, Inc.
+ * Copyright(c) 2015 Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -599,6 +600,7 @@ static int eth_enicpmd_dev_init(struct rte_eth_dev *eth_dev)
eth_dev->tx_pkt_burst = &enicpmd_xmit_pkts;
pdev = eth_dev->pci_dev;
+ rte_eth_copy_dev_info(eth_dev, pdev);
enic->pdev = pdev;
addr = &pdev->addr;