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 348FA41C99; Tue, 14 Feb 2023 23:49:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24E0143021; Tue, 14 Feb 2023 23:48:16 +0100 (CET) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id 39A2243004 for ; Tue, 14 Feb 2023 23:48:05 +0100 (CET) Received: by mail-pj1-f53.google.com with SMTP id d8-20020a17090ad98800b002344fa17c8bso216167pjv.5 for ; Tue, 14 Feb 2023 14:48:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kFRl8j+YQC8GSnvt8uJaAlHH4NW76fDU6O3JskDGXTA=; b=Uhjz+bWMoYEICGoJSsxrH6uGIZNCc3BPtixSkXHyKPFfXqWlhrYcvD6mM90XgkzjDL +TX2zluUjJ/34N1fAlddDEoZw2/mTr8iKdJsIY8CxjjS3+wD7ogpmp/xWokM9u5xD+Fi fS2Q4KPRLQ5W2H+GEc2vbtu51Xv/a5/CCuvM5DqJm7nnJuo5rt+9yoljVjGIUwkdY98J Q0Xlhfs8M7CKghfwdkBH4x4np/LGWX3qW9qq1fHkuvEvu1USkUnQrvZpLAvhctjdDkvp EaXShON0Y+Ym/vFwkOpWdp6tSq/GBdbyiRWMRvyRo1PXB4ne+UufwWkLE7JCkgRHHXv5 zCpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kFRl8j+YQC8GSnvt8uJaAlHH4NW76fDU6O3JskDGXTA=; b=1hwpJSRG3Ep7y6u9RJskYj24UiRRUs7fitTdvYQpc8ee9FluYESxayavK9BsDZCTwO TrcDP93/m4hRwEP7KXgm7dinHupJpdp5jLYH9Ziu4ocWaIageqyGRKTMPOdZMshVuZ02 2/86RcZ01WkKBxwKcahRP1sfJ0VmcFnz+hqr0X7uR6YdLb18HirijmWNpT3YCq6lTE0H sP2lEYtQe+NlarYowmQGEb+5wpEunKgoJktv09e4eggAmsIjZbJAmW8aratsRlVlV7f1 Ki9HvcCeOegK+Q+9FidsxVp+gl2nZz3JrCVafnu0NQaHpeu/cKL+eOeiVt8ClXq4GXrR GAaQ== X-Gm-Message-State: AO0yUKVp/gC/rFDPDEWFVRWtXp0G4bvGBV5EiApplzCtNtVm+5ykZdAY gH+bUcOykpQEOEP7bjsco4gxPEz5oauQKrKNGX4= X-Google-Smtp-Source: AK7set9NndU/y+7+ND3UEOFlpcbxHRvhAohFw+N9BzBZZkVy2XAPaJbwJuetvGVexI+nrfv8ovTZCw== X-Received: by 2002:a17:903:7c6:b0:19a:9605:b95f with SMTP id ko6-20020a17090307c600b0019a9605b95fmr153044plb.61.1676414884192; Tue, 14 Feb 2023 14:48:04 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id u9-20020a17090341c900b0019607984a5esm10735785ple.95.2023.02.14.14.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 14:48:03 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , akhil.goyal@nxp.com, Radu Nicolau , Akhil Goyal , Declan Doherty , Aviad Yehezkel , Boris Pismenny Subject: [PATCH v6 15/22] examples/ipsecgw: replace RTE_LOGTYPE_PORT Date: Tue, 14 Feb 2023 14:47:28 -0800 Message-Id: <20230214224735.1404326-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214224735.1404326-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230214224735.1404326-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Looks like some code got copy/paste in to the IPSEC gateway example from another place. Shouldn't be using RTE_LOGTYPE_PORT here. Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Cc: akhil.goyal@nxp.com Signed-off-by: Stephen Hemminger --- examples/ipsec-secgw/sa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 7da9444a7b8a..67327fda8dbc 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -1127,7 +1127,7 @@ check_eth_dev_caps(uint16_t portid, uint32_t inbound, uint32_t tso) if (inbound) { if ((dev_info.rx_offload_capa & RTE_ETH_RX_OFFLOAD_SECURITY) == 0) { - RTE_LOG(WARNING, PORT, + RTE_LOG(WARNING, IPSEC, "hardware RX IPSec offload is not supported\n"); return -EINVAL; } @@ -1135,13 +1135,13 @@ check_eth_dev_caps(uint16_t portid, uint32_t inbound, uint32_t tso) } else { /* outbound */ if ((dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_SECURITY) == 0) { - RTE_LOG(WARNING, PORT, + RTE_LOG(WARNING, IPSEC, "hardware TX IPSec offload is not supported\n"); return -EINVAL; } if (tso && (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_TCP_TSO) == 0) { - RTE_LOG(WARNING, PORT, + RTE_LOG(WARNING, IPSEC, "hardware TCP TSO offload is not supported\n"); return -EINVAL; } -- 2.39.1