git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6562269
)
net/dpaa2: set device driver
author
Hemant Agrawal
<hemant.agrawal@nxp.com>
Thu, 22 Jun 2017 13:57:08 +0000
(19:27 +0530)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000
(15:00 +0200)
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/dpaa2/dpaa2_ethdev.c
b/drivers/net/dpaa2/dpaa2_ethdev.c
index
da309ac
..
df11204
100644
(file)
--- a/
drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/
drivers/net/dpaa2/dpaa2_ethdev.c
@@
-1533,7
+1533,7
@@
dpaa2_dev_uninit(struct rte_eth_dev *eth_dev)
}
static int
-rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv
__rte_unused
,
+rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv,
struct rte_dpaa2_device *dpaa2_dev)
{
struct rte_eth_dev *eth_dev;
@@
-1560,6
+1560,8
@@
rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv __rte_unused,
}
}
eth_dev->device = &dpaa2_dev->device;
+ eth_dev->device->driver = &dpaa2_drv->driver;
+
dpaa2_dev->eth_dev = eth_dev;
eth_dev->data->rx_mbuf_alloc_failed = 0;