summaryrefslogtreecommitdiff
path: root/drivers/net/ring
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/ring
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/ring')
-rw-r--r--drivers/net/ring/rte_eth_ring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c
index be934cf..35b837c 100644
--- a/drivers/net/ring/rte_eth_ring.c
+++ b/drivers/net/ring/rte_eth_ring.c
@@ -329,6 +329,7 @@ do_eth_dev_ring_create(const char *name,
eth_dev->rx_pkt_burst = eth_ring_rx;
eth_dev->tx_pkt_burst = eth_ring_tx;
+ rte_eth_dev_probing_finish(eth_dev);
*eth_dev_p = eth_dev;
return data->port_id;