From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id AB5DB1B00B for ; Tue, 23 Jan 2018 13:27:47 +0100 (CET) Received: from cpe-2606-a000-111b-4011-eaa3-4b92-4a68-8f24.dyn6.twc.com ([2606:a000:111b:4011:eaa3:4b92:4a68:8f24] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1edxfu-0003MG-9S; Tue, 23 Jan 2018 07:27:45 -0500 Date: Tue, 23 Jan 2018 07:27:06 -0500 From: Neil Horman To: Stephen Hemminger Cc: dev@dpdk.org, Ferruh Yigit Message-ID: <20180123122706.GB22398@hmswarspite.think-freely.org> References: <20180122235458.28562-1-stephen@networkplumber.org> <20180122235458.28562-9-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180122235458.28562-9-stephen@networkplumber.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: Re: [dpdk-dev] [PATCH v7 08/15] net/ixgbe: use rte_eth_linkstatus functions 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: Tue, 23 Jan 2018 12:27:47 -0000 On Mon, Jan 22, 2018 at 03:54:51PM -0800, Stephen Hemminger wrote: > Use the new helper functions from eth_dev for > handling atomic link_info update. > > Signed-off-by: Stephen Hemminger > Signed-off-by: Ferruh Yigit > > --- > drivers/net/ixgbe/ixgbe_ethdev.c | 96 +++++++--------------------------------- > 1 file changed, 17 insertions(+), 79 deletions(-) > > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c > index 58217680c29c..7b74cbe92c0d 100644 > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -20,7 +20,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -787,58 +786,6 @@ static const struct rte_ixgbe_xstats_name_off rte_ixgbevf_stats_strings[] = { > #define IXGBEVF_NB_XSTATS (sizeof(rte_ixgbevf_stats_strings) / \ > sizeof(rte_ixgbevf_stats_strings[0])) > Getting some build errors here: CC igb_ethdev.o /home/nhorman/git/dpdk/drivers/net/e1000/igb_ethdev.c: In function ‘eth_igb_stop’: /home/nhorman/git/dpdk/drivers/net/e1000/igb_ethdev.c:1510:2: error: implicit declaration of function ‘rte_eth_linkstatus_set’; did you mean ‘rte_eth_xstats_get’? [-Werror=implicit-function-declaration] rte_eth_linkstatus_set(dev, &link); ^~~~~~~~~~~~~~~~~~~~~~ rte_eth_xstats_get /home/nhorman/git/dpdk/drivers/net/e1000/igb_ethdev.c:1510:2: error: nested extern declaration of ‘rte_eth_linkstatus_set’ [-Werror=nested-externs] /home/nhorman/git/dpdk/drivers/net/e1000/igb_ethdev.c: In function ‘eth_igb_interrupt_action’: /home/nhorman/git/dpdk/drivers/net/e1000/igb_ethdev.c:2831:3: error: implicit declaration of function ‘rte_eth_linkstatus_get’; did you mean ‘rte_eth_xstats_get’? [-Werror=implicit-function-declaration] rte_eth_linkstatus_get(dev, &link);