From patchwork Wed Sep 13 14:03:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 131404 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 77DC54258A; Wed, 13 Sep 2023 16:03:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64CC84067C; Wed, 13 Sep 2023 16:03:49 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 9670D40A72 for ; Wed, 13 Sep 2023 16:03:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694613827; 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=i/wqHxZTak8NigTXZTLXR9Tr/FRVowp6K0xaU0diemA=; b=Y7zQ9paJTwMu7cmHzvZxGav/qMu/DDTYqZ03Z2p+fXCEkUgo+6hBz3eoA7ngtxp3H7jEop gUBM9FC8CQSFVL5I4hk1Nu2DuX2BIaMnfZDiicyczWen3a7xkPU0w5rQEVfJRqy4aVOQb5 ZuDURXu9gsJZqZnc9e/WjA1HFCnQvjs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-394-Bo9-5LJ6N5CkDcPmu22KkA-1; Wed, 13 Sep 2023 10:03:41 -0400 X-MC-Unique: Bo9-5LJ6N5CkDcPmu22KkA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DAEB48870B1; Wed, 13 Sep 2023 14:03:32 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5823740C6EBF; Wed, 13 Sep 2023 14:03:30 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Jingjing Wu , Beilei Xing , Declan Doherty , Abhijit Sinha , Radu Nicolau Subject: [PATCH] net/iavf: fix Tx debug Date: Wed, 13 Sep 2023 15:03:27 +0100 Message-ID: <20230913140328.966913-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 Commit 1e728b01120c ("net/iavf: rework Tx path") reintroduced a check on RTE_LIBRTE_IAVF_DEBUG_TX that has been dropped in favor of RTE_ETHDEV_DEBUG_TX. Fixes: 1e728b01120c ("net/iavf: rework Tx path") Cc: stable@dpdk.org Signed-off-by: David Marchand Acked-by: Qi Zhang --- drivers/net/iavf/iavf_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index f7df4665d1..f1952e1bc8 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -2529,7 +2529,7 @@ iavf_fill_ctx_desc_segmentation_field(volatile uint64_t *field, total_length -= m->outer_l3_len + m->outer_l2_len; } -#ifdef RTE_LIBRTE_IAVF_DEBUG_TX +#ifdef RTE_ETHDEV_DEBUG_TX if (!m->l4_len || !m->tso_segsz) PMD_TX_LOG(DEBUG, "L4 length %d, LSO Segment size %d", m->l4_len, m->tso_segsz);