From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D0BC12C8 for ; Wed, 23 May 2018 12:06:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2018 03:05:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,432,1520924400"; d="scan'208";a="42176216" Received: from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203]) by fmsmga008.fm.intel.com with ESMTP; 23 May 2018 03:05:58 -0700 From: Vipin Varghese To: dev@dpdk.org, qi.z.zhang@intel.com, marko.kovacevic@intel.com Cc: deepak.k.jain@intel.com, Vipin Varghese Date: Wed, 23 May 2018 15:35:59 +0530 Message-Id: <1527069959-37765-1-git-send-email-vipin.varghese@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH v1] doc/eth: update document for functional limitation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 10:06:01 -0000 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 --- 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