From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 139E49E7 for ; Thu, 9 Jul 2015 01:43:11 +0200 (CEST) Received: by wiwl6 with SMTP id l6so3044811wiw.0 for ; Wed, 08 Jul 2015 16:43:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=PvMavKWhqgrxxwHmANVQxDymMYmrxWG0bV2mS53v2Ds=; b=mM0Aq6iwKmzgBsCREkUbFs9RoQniPkmVCzNOoVg1l8E8IpMB8QqxJ72vuHyQmJZKtI UfwygYJj6nkIA39VXvJZYApFOyByNiKocHfxWb6GBNOv7H+go7ih7dGQPp4zDMuXzVXR NcPeFk0PXYrCwCtIIoiJOCmEgu6U0+rX4/SCoUXwUEXyu21AhE/JrLJ18K4Xlua79qPs qCngdSMzrzypiLSxTbFtvwXeqfUQTq8yptKQEtHBGLw0oiDQFaMxqefvdvebMGzD8V9z 4/LmKe21SAHKyKNZlfI7tRY3EWNpA5KqaKJd5Oh0lqrMgbdONql8ld4AY3mzV6/LzMQ6 TI8w== X-Gm-Message-State: ALoCoQkCBfFFmNZRshR4Rs2MGtsm4bunQYusMda3JpljNMMCl5HhLVrHtgtHXB/jk/0uNNBGfdDW X-Received: by 10.180.37.133 with SMTP id y5mr67954507wij.7.1436398990910; Wed, 08 Jul 2015 16:43:10 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id fi6sm5268935wib.6.2015.07.08.16.43.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 16:43:10 -0700 (PDT) From: Thomas Monjalon To: Stephen Hemminger Date: Thu, 09 Jul 2015 01:42:05 +0200 Message-ID: <65291843.c0UB9Vuis4@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1429637564-5656-2-git-send-email-stephen@networkplumber.org> References: <1429637564-5656-1-git-send-email-stephen@networkplumber.org> <1429637564-5656-2-git-send-email-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org, Stephen Hemminger , alexmay@microsoft.com Subject: Re: [dpdk-dev] [PATCH v4 1/7] ether: add function to query for link state interrupt 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: Wed, 08 Jul 2015 23:43:11 -0000 2015-04-21 10:32, Stephen Hemminger: > Allow application to query whether link state will work. > This is also part of abstracting dependency on PCI. > > Signed-off-by: Stephen Hemminger > --- > lib/librte_ether/rte_ethdev.c | 14 ++++++++++++++ > lib/librte_ether/rte_ethdev.h | 12 ++++++++++++ [...] > /** > + * Test whether device supports link state interrupt mode. > + * > + * @param port_id > + * The port identifier of the Ethernet device. > + * @return > + * - (1) if link state interrupt is supported > + * - (0) if link state interrupt is not supported > + */ > +extern int > +rte_eth_has_link_state(uint8_t port_id); It requires change in map file to work with shared library.