From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id B9B362BB5 for ; Mon, 26 Sep 2016 12:08:32 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP; 26 Sep 2016 03:08:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,398,1470726000"; d="scan'208";a="883818427" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.62]) by orsmga003.jf.intel.com with SMTP; 26 Sep 2016 03:08:29 -0700 Received: by (sSMTP sendmail emulation); Mon, 26 Sep 2016 11:08:28 +0025 Date: Mon, 26 Sep 2016 11:08:28 +0100 From: Bruce Richardson To: Keren Hochman Cc: dev@dpdk.org Message-ID: <20160926100828.GB15828@bricha3-MOBL3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] Using rte_eth_link_get_nowait X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 10:08:33 -0000 On Mon, Sep 26, 2016 at 01:02:00PM +0300, Keren Hochman wrote: > Hi, > My application needs to know if port is up, but without wasting 9 seconds > (using rte_eth_link_get). > I tried to register to callback: lsi_event_callback as suggested in the > DPDK examples but I did not receive the event RTE_ETH_EVENT_INTR_LSC. > Thanks, Keren. There is also the ethdev function rte_eth_link_get_nowait(), which should do what you want, I think. Regards, /Bruce