From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 368A9A0C41; Fri, 29 Oct 2021 23:50:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5A3740688; Fri, 29 Oct 2021 23:50:25 +0200 (CEST) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 9B6C640395 for ; Fri, 29 Oct 2021 23:50:24 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id t7so11051700pgl.9 for ; Fri, 29 Oct 2021 14:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sqfZUiEHSmE7xc1GIPlhuJGBAb8CDFQoBbZr84puWP0=; b=vLtTLtoDPzzu9m6mDyC0Iullg8K7ZsiZYTuRQKfNemRRfjS3YhuNT/74QCHFOsEuX7 JBXf0vxajlt1bibssHiff8xjhayc+GDPGNiITxTHVREW/G5BD+VzRrM8KH6lYpBcGShP 68MijHmsNfjsnEOFyEvzPYppPYgIAlv9+CLFReRUjxGtGrQtA4xt5UzVYWj4CzIoHtqK rcXlpDtOnn3W18pPsCkykHs9hPVFkR/3FfVnWcArvMTo6zwoCaKQxqi8cOdcx1VZq4SC utfVa9j+0JGS7ZC9/Knm1oXUkhDQW7PCUZYs8gaJ/JMHqfMCx1ocD19i3RyF5JWGcyr5 xuVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sqfZUiEHSmE7xc1GIPlhuJGBAb8CDFQoBbZr84puWP0=; b=nTUwwD5vetFs4Z1iqqlwWKr8oofwPrNIh+bIYToJBD0HHQrqVmnaYSPg2IXvB2BxOo 8zAx869DT3+ArLv4Q7oRbZzAgn79jt3OW5HneGvfgaeI0I/JjQs76TwIWIhm+CnZertk 7r9KJSfNM11K0Df5uvdkcXJT+wVJsL2T8qsKZzrPbsOtHiAjlRzPKRXKLxkbcQRM6Xol ynxzQysIkrSA2VQnUa38f8Ac35Wzi7Khe6V/L1bSJcR4ezx8M6bkw8R5vyoiIBLvFm/c 5qSEMvhFHLIdg+dvvShCB75AahckJBFNmn72XSn7kFlwoDKXpc0M1xP1x7Zm+qnZe0+s tXhw== X-Gm-Message-State: AOAM530skWMREF7OB1wJQCF/9xOXoPDOu+MeIaQDhS+akSE3OkIGMlgP xNsHFHbBSdAc4lRKKhZYz9ktTA== X-Google-Smtp-Source: ABdhPJwnsFqWUz6Z5fH4A7BCqsS4htd2/4mKqd0iaHq0/Mv2oMwxrDNtr7EDHfX9u7YQjsqA9sCOVQ== X-Received: by 2002:a62:524a:0:b0:47b:e7ba:d9e with SMTP id g71-20020a62524a000000b0047be7ba0d9emr13477711pfb.53.1635544223741; Fri, 29 Oct 2021 14:50:23 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id z3sm8119176pfh.79.2021.10.29.14.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 14:50:23 -0700 (PDT) From: Stephen Hemminger To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Stephen Hemminger Date: Fri, 29 Oct 2021 14:50:12 -0700 Message-Id: <20211029215011.72843-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <2bdfc985-1011-d866-7e89-32baf8f1669b@intel.com> References: <2bdfc985-1011-d866-7e89-32baf8f1669b@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] pcapng: do not use deprecated ETH_LINK_UP X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" RTE_ prefix was added by: commit 295968d17407 ("ethdev: add namespace") Fixes: 8d23ce8f5ee9 ("pcapng: add new library for writing pcapng files") Signed-off-by: Stephen Hemminger --- lib/pcapng/rte_pcapng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pcapng/rte_pcapng.c b/lib/pcapng/rte_pcapng.c index a3d5760e6835..03edabe73e96 100644 --- a/lib/pcapng/rte_pcapng.c +++ b/lib/pcapng/rte_pcapng.c @@ -178,7 +178,7 @@ pcapng_add_interface(rte_pcapng_t *self, uint16_t port) /* DPDK reports in units of Mbps */ rte_eth_link_get(port, &link); - if (link.link_status == ETH_LINK_UP) + if (link.link_status == RTE_ETH_LINK_UP) speed = link.link_speed * PCAPNG_MBPS_SPEED; if (rte_eth_macaddr_get(port, &macaddr) < 0) -- 2.30.2