summaryrefslogtreecommitdiff
path: root/drivers/net/mvpp2
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-05-11 01:58:30 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 22:31:53 +0100
commitfbe90cdd776c3ac99c4c56d1b5318a90fcf01602 (patch)
treed69e181a8be5e7dca983e5c6781180753fa710c6 /drivers/net/mvpp2
parent01a98fdd088d9ed7c3da9e3a2f0696ac29bcc037 (diff)
downloaddpdk-next-eventdev-fbe90cdd776c3ac99c4c56d1b5318a90fcf01602.zip
dpdk-next-eventdev-fbe90cdd776c3ac99c4c56d1b5318a90fcf01602.tar.gz
dpdk-next-eventdev-fbe90cdd776c3ac99c4c56d1b5318a90fcf01602.tar.xz
ethdev: add probing finish function
A new hook function is added and called inside the PMDs at the end of the device probing: - in primary process, after allocating, init and config - in secondary process, after attaching and local init This new function is almost empty for now. It will be used later to add some post-initialization processing. For the PMDs calling the helpers rte_eth_dev_create() or rte_eth_dev_pci_generic_probe(), the hook rte_eth_dev_probing_finish() is called from here, and not in the PMD itself. Note that the helper rte_eth_dev_create() could be used more, especially for vdevs, avoiding some code duplication in PMDs. Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'drivers/net/mvpp2')
-rw-r--r--drivers/net/mvpp2/mrvl_ethdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c
index c9d85ca..ea6a786 100644
--- a/drivers/net/mvpp2/mrvl_ethdev.c
+++ b/drivers/net/mvpp2/mrvl_ethdev.c
@@ -2515,6 +2515,7 @@ mrvl_eth_dev_create(struct rte_vdev_device *vdev, const char *name)
eth_dev->device = &vdev->device;
eth_dev->dev_ops = &mrvl_ops;
+ rte_eth_dev_probing_finish(eth_dev);
return 0;
out_free_mac:
rte_free(eth_dev->data->mac_addrs);