From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4 1/7] ether: add function to query for link state interrupt Date: Thu, 09 Jul 2015 01:42:05 +0200 Message-ID: <65291843.c0UB9Vuis4@xps13> References: <1429637564-5656-1-git-send-email-stephen@networkplumber.org> <1429637564-5656-2-git-send-email-stephen@networkplumber.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Stephen Hemminger , alexmay@microsoft.com To: Stephen Hemminger 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) In-Reply-To: <1429637564-5656-2-git-send-email-stephen@networkplumber.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.