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 CECEB41D40; Wed, 22 Feb 2023 17:11:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 169FA430B5; Wed, 22 Feb 2023 17:09:59 +0100 (CET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id A112043056 for ; Wed, 22 Feb 2023 17:09:38 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id i10so384281plr.9 for ; Wed, 22 Feb 2023 08:09:38 -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=zlpEUyUD9dpt/sDDip1P6d7FnmLU8yWs6o8eESEj7/H7PQQf9X5ihp9QrV/IxENENr YvWhyc4vbYVOxF6KwPe7njyr4dmDxNXPBhcic6aH3jaqGB1NILu6Lk1dtCHGO/scbKix bcLb6KFJx5mKJFlu0oO1IErFJsjUZqNvUECvw4bMp2RPd5aMBZmFJBrFd2i81Pa9PzvE GAMpQ9NaCbcQdaEYbxMh6urKXqVhXSl7Wzx1rWoicRGXXDuvEUjX+qiQ/zt+iDT/GoAu QY/CpRBm5+wRJYb9ULXydNhMzuf1vAriK8fKsR8O6U/hkNXW3+t7gyj9n69ciJ645TsO jezw== 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=iGkDIoeDnnOVh+atlwzvGlXqEsjqbkIDNFcO3SVsnT6hikt67/WPa3FsqkDsoqDTRb qtNNXVgokLOOZTOXlwYKqgmv1QXSvLEZchyztO+af6NNajZainiKm8iLDnS9oVrEO5Xb bog+rK31ki5UMmVEeZHpYiGja7i1EE54twKS3/PtQI2tuy0Z4R3ZCNv0/ITuH+kUpGEC CJgXhI1ANwwK7gISCnX69UaZ8qj+eNRvcRzEiEp54L6nzuMXqSwgxsNPRCRbpwsAoal+ oTVCrLx0L1WSJL6AF7OqOCC8LO1wos0rdjPz5oAmUd3FvYCSipoQprGkdkJj1nGxVJ1Z ZCMg== X-Gm-Message-State: AO0yUKWSeFTIpiQhQ9D064CJN3pvJSbNH+7ZkU5rHc+dJnmASmH9zgkw 3vuEFj1/vWm421XuQAxVKReihHDo316JpBee1mc= X-Google-Smtp-Source: AK7set9ZxEYIfHd1B2xazs1F53HGadzvCOtuQ8y8/eEDX8VGdCBAYEqZzmwpwwGDClX4kRNchlgXMw== X-Received: by 2002:a17:90b:4f4e:b0:22b:fd64:c48e with SMTP id pj14-20020a17090b4f4e00b0022bfd64c48emr8001132pjb.14.1677082177809; Wed, 22 Feb 2023 08:09:37 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id x24-20020a63db58000000b004fb71d96d78sm5063778pgi.2.2023.02.22.08.09.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:09:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , akhil.goyal@nxp.com, Radu Nicolau , Akhil Goyal , Boris Pismenny , Aviad Yehezkel , Declan Doherty Subject: [PATCH v10 15/22] examples/ipsecgw: replace RTE_LOGTYPE_PORT Date: Wed, 22 Feb 2023 08:07:55 -0800 Message-Id: <20230222160802.123611-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230222160802.123611-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230222160802.123611-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