From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 571179E3 for ; Thu, 30 Mar 2017 01:26:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490829978; x=1522365978; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=i8l2kZz/jp1VSPSmy6Sg/Ad5GwxwmRA+jqIeGh8x1p8=; b=oUX7kV1fazCH7byqZSsjJ5Y5PZxRIjRPZNjLDA+I6nKZfD6fl4OGWPk9 BLKt9VSL4aYNFoO/cNJqc0NOcm1JHg==; Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2017 16:26:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,243,1486454400"; d="scan'208";a="82491174" Received: from silpixa00398672.ir.intel.com ([10.237.223.128]) by fmsmga006.fm.intel.com with ESMTP; 29 Mar 2017 16:26:16 -0700 From: Harry van Haaren To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, Harry van Haaren Date: Thu, 30 Mar 2017 00:25:43 +0100 Message-Id: <1490829963-106807-2-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490829963-106807-1-git-send-email-harry.van.haaren@intel.com> References: <1490374395-149320-1-git-send-email-harry.van.haaren@intel.com> <1490829963-106807-1-git-send-email-harry.van.haaren@intel.com> Subject: [dpdk-dev] [PATCH v6 01/21] eventdev: improve API docs for start function 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, 29 Mar 2017 23:26:18 -0000 This commit documents two error return values for the rte_event_dev_start() function. -EINVAL indicates not all ports are configured -EDEADLK indicates that not all queues are linked to ports. If an application enqueues to such a queue it can lead to deadlock Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index 9971937..dc8dacb 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -757,7 +757,8 @@ rte_event_port_count(uint8_t dev_id); * Event device identifier * @return * - 0: Success, device started. - * - <0: Error code of the driver device start function. + * - -EINVAL : Not all ports of the device are configured + * - -EDEADLK: Not all queues are linked, which could lead to deadlock. */ int rte_event_dev_start(uint8_t dev_id); -- 2.7.4