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 D31CB41D43; Wed, 22 Feb 2023 22:57:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 119204320C; Wed, 22 Feb 2023 22:56:27 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id AEC88431A0 for ; Wed, 22 Feb 2023 22:56:04 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id g12so5285428pfi.0 for ; Wed, 22 Feb 2023 13:56:04 -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=OGyu/4/Qe4H9y8xz44rHnYHCSsj5SDLcZMpzwEIYHKLYyu4DvljErqY8ztDCu2/LXM HqCLg1+HssTD2Y1ouHltquOHCc7b62aLdWjNNRXYGYXw0U6+KhyJvcjeXmvD1jxDE387 ljKfAqSzNMtXIO11ipqse9BFZHnDBRGT6HERZ6glrWk38uiDGfDPwv3S5ljgLG4WJ0+j 8OGdOXIuwulW8Y7jF4fQHkSOFJVlgtW1BSBQCIrbjo5OZQyrMY5CWAAaWmysuY6OuNHb CadoU2Z14MmZYoFrpE+5YLUgbeL+Xf6PXMF+0gaQK4o1Y6cpqXIIBOe4IgVnxYPNecYT NoYA== 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=LMg+4VafjU/neR6msKrgDJ9kWHENszDeBT6sjI1uY7ArJNStIL4PmXd6tWl19vrTul Ta8OIkVMNIBg8iI+mvVj8RHbgIxFwPT2omtxwwErkjlk843xkZrF8d5HxKYu1J8nMcAj SjVLjYbrnEpZ+rVRC5lyLunlDYb0YDxzs3Bf0GGUcLR6HB0pkpzBMrH6onv+G84EQDCF HEg8HR2BRSLzkuPa/ujpsQsu+Wh1QysnDmnKlQjukORr2/nedhRXyy9j337gAPchWO+G /Vh8lMTr6V5+5c31W94tDRPjuzM3jyBFNd+NbXrk5cQ/gbMUHEoD/XCHzlhrQgDuR5Ng o9LQ== X-Gm-Message-State: AO0yUKWgo17C09XqEFDrqgqfCDquoUOH/3kbDLbwxCHp8Sdm6Os4Yhp/ yy0Ic7JK2+IRCRqVEWCI8CAl7JpB08BiS8Nzjt4= X-Google-Smtp-Source: AK7set8S9Zw/YbClFAbysykazKc5iIFhYjRqPIPyX/M3N4/dktLgMq9NkvWJGAz9FlabWvzCDayFLg== X-Received: by 2002:aa7:948c:0:b0:5aa:60b8:87d4 with SMTP id z12-20020aa7948c000000b005aa60b887d4mr10342980pfk.3.1677102963584; Wed, 22 Feb 2023 13:56:03 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id d7-20020aa78147000000b00571cdbd0771sm6400722pfn.102.2023.02.22.13.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 13:56: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 v11 15/22] examples/ipsecgw: replace RTE_LOGTYPE_PORT Date: Wed, 22 Feb 2023 13:55:34 -0800 Message-Id: <20230222215541.158205-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230222215541.158205-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230222215541.158205-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