From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC7AAA04DE; Fri, 23 Oct 2020 10:44:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ADD45A8E7; Fri, 23 Oct 2020 10:44:27 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 8DC4FA8E5 for ; Fri, 23 Oct 2020 10:44:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603442664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uvlptHtPHbtpCObsXMrlniTgIWw/QFmX29HsL+eRIew=; b=SsT2TlLIBR1mM/OMpVoc3hL4Z2aDC2tIY9Ur54uMmRDSbS2eUunhv9fRUXK/aUF0VVRhCp HvjwXLFj5cGEOjagnATiAdJCIj5UbLcIZpsRfxz2mTqKxc3x/PKH9huopjjr/+Ctn9MeQl Z8S+vBwnrqSbEBopiqsa6qotAksEBzI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-368-tP9aPYmQNCmkZTYt53BRCg-1; Fri, 23 Oct 2020 04:44:20 -0400 X-MC-Unique: tP9aPYmQNCmkZTYt53BRCg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 712F9835B91; Fri, 23 Oct 2020 08:44:18 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 43E0F5D9CC; Fri, 23 Oct 2020 08:44:14 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin , Igor Chauskin , Rafal Kozik , Stephen Hemminger Date: Fri, 23 Oct 2020 10:43:51 +0200 Message-Id: <20201023084352.30034-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] net/ena: remove unused macro 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This assert macro is not called anymore. This also fixes an invalid reference to RTE_LOGTYPE_ERR that does not exist. Fixes: 3adcba9a8987 ("net/ena: update HAL to the newer version") Fixes: 6f1c9df9e9cc ("net/ena: use dynamic log type for debug logging") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/net/ena/base/ena_plat_dpdk.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h index ae4fd8f868..a6782f3732 100644 --- a/drivers/net/ena/base/ena_plat_dpdk.h +++ b/drivers/net/ena/base/ena_plat_dpdk.h @@ -73,19 +73,6 @@ typedef uint64_t dma_addr_t; (rte_get_timer_cycles() * US_PER_S / rte_get_timer_hz()) extern int ena_logtype_com; -#if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG -#define ENA_ASSERT(cond, format, arg...) \ - do { \ - if (unlikely(!(cond))) { \ - rte_log(RTE_LOGTYPE_ERR, ena_logtype_com, \ - format, ##arg); \ - rte_panic("line %d\tassert \"" #cond "\"" \ - "failed\n", __LINE__); \ - } \ - } while (0) -#else -#define ENA_ASSERT(cond, format, arg...) do {} while (0) -#endif #define ENA_MAX_T(type, x, y) RTE_MAX((type)(x), (type)(y)) #define ENA_MAX32(x, y) ENA_MAX_T(uint32_t, (x), (y)) -- 2.23.0