[dpdk-dev] [PATCH v1] doc/eth: update document for functional limitation

Vipin Varghese vipin.varghese at intel.com
Wed May 23 12:05:59 CEST 2018


ETH APIs dev_attach and dev_dettach can be exercised from primary
process only. Secondary process only maps the resource and does
not have access to internal device list. Hence updating documentation
to reflect the same.

Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
---
 lib/librte_ethdev/rte_ethdev.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
index 36e3984..6afcf9f 100644
--- a/lib/librte_ethdev/rte_ethdev.h
+++ b/lib/librte_ethdev/rte_ethdev.h
@@ -1479,6 +1479,9 @@ int rte_eth_dev_attach(const char *devargs, uint16_t *port_id);
  * This function must be called when the device is in the
  * closed state.
  *
+ * Note:
+ * - Currently supported for primary process only.
+ *
  * @param port_id
  *   The port identifier of the device to detach.
  * @param devname
@@ -1493,6 +1496,9 @@ int rte_eth_dev_detach(uint16_t port_id, char *devname);
  * Convert a numerical speed in Mbps to a bitmap flag that can be used in
  * the bitmap link_speeds of the struct rte_eth_conf
  *
+ * Note:
+ * - Currently supported for primary process only.
+ *
  * @param speed
  *   Numerical speed value in Mbps
  * @param duplex
-- 
2.7.4



More information about the dev mailing list